-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
2,923 additions
and
216 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Windows.Forms; | ||
|
||
namespace Naticord | ||
{ | ||
public partial class Loading : Form | ||
{ | ||
private Naticord parentForm; | ||
private Random random = new Random(); | ||
private List<string> quotes = new List<string> | ||
{ | ||
"Loading...", | ||
"AAAAAAAAAAAAAAAAAAAAA", | ||
"why the fuck does this function NOT WORK - pat", | ||
"chicken cheese nugget", | ||
"how was your day", | ||
"cool beans", | ||
"fkjsdfgkjsdfjklsdjgklwdf ui9egrhui", | ||
"i have severe brain damage afte reading this code - pat" | ||
}; | ||
|
||
public Loading(Naticord parentForm) | ||
{ | ||
InitializeComponent(); | ||
this.parentForm = parentForm; | ||
} | ||
|
||
public void UpdateProgress(string message, int progress) | ||
{ | ||
loadingQuotes.Text = message; | ||
loadingProgress.Value = progress; | ||
} | ||
|
||
private void Loading_Shown(object sender, EventArgs e) | ||
{ | ||
// Start loading process when the form is shown | ||
//parentForm.StartLoading(); | ||
} | ||
|
||
private string GetRandomQuote() | ||
{ | ||
return quotes[random.Next(quotes.Count)]; | ||
} | ||
} | ||
} |
Oops, something went wrong.