diff options
| author | lempamo <[email protected]> | 2017-08-23 13:38:40 -0400 |
|---|---|---|
| committer | lempamo <[email protected]> | 2017-08-23 13:38:40 -0400 |
| commit | 3306d36ecbc024775972e5cf7971b2a7a70671d0 (patch) | |
| tree | 0a79e67b6723a8c75ffd66c7828bdd0ebb1bf74d /TimeHACK.Main/GlobalPrograms/WinClassicDownloader.cs | |
| parent | 99fef5c57360f07259fc86f433bed8a9ab59c48e (diff) | |
| download | histacom2-3306d36ecbc024775972e5cf7971b2a7a70671d0.tar.gz histacom2-3306d36ecbc024775972e5cf7971b2a7a70671d0.tar.bz2 histacom2-3306d36ecbc024775972e5cf7971b2a7a70671d0.zip | |
Renaming the game!
Diffstat (limited to 'TimeHACK.Main/GlobalPrograms/WinClassicDownloader.cs')
| -rw-r--r-- | TimeHACK.Main/GlobalPrograms/WinClassicDownloader.cs | 86 |
1 files changed, 0 insertions, 86 deletions
diff --git a/TimeHACK.Main/GlobalPrograms/WinClassicDownloader.cs b/TimeHACK.Main/GlobalPrograms/WinClassicDownloader.cs deleted file mode 100644 index 567b8e6..0000000 --- a/TimeHACK.Main/GlobalPrograms/WinClassicDownloader.cs +++ /dev/null @@ -1,86 +0,0 @@ -using System; -using System.IO; -using System.Windows.Forms; -using static TimeHACK.Engine.SaveSystem; - -namespace TimeHACK.OS.Win95.Win95Apps -{ - public partial class WinClassicDownloader : UserControl - { - public WinClassicDownloader() - { - InitializeComponent(); - } - - private string downloadSpeed() - { - Random rnd = new Random(); - return rnd.Next(7, 9).ToString() + "." + rnd.Next(7, 9).ToString() + rnd.Next(7, 9).ToString(); - } - - int amountToDL = 100; - int amountDLed = 0; - - private void WinClassicDownloader_Load(object sender, EventArgs e) - { - dlTimer.Start(); - dlSpeed.Start(); - } - - private void dlTimer_Tick(object sender, EventArgs e) - { - amountDLed = amountDLed + 8; - if (8 > amountToDL - amountDLed) - { - progBar.Value = 100; - amountLbl.Text = $"Downloaded {amountDLed} KB out of {amountToDL}"; - - switch (appName.Text) - { - case "Downloading: FTP Client": - CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "Desktop"), "FTP Client Setup.exe", "ftp client setup", 11, 56291); - break; - case "Downloading: Web Chat 1998": - CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "Desktop"), "Web Chat Setup.exe", "web chat setup", 11, 34846); - break; - case "Downloading: Time Distorter 0.1": - CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "Desktop"), "Time Distorter Setup.exe", "time distorter setup", 11, 11583); - break; - } - /* if (appName.Text == "Downloading: Guess The Number") - { - CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "Desktop", "Guess The Number Setup.exe"), "GuessTheNumber"); - } - if (appName.Text == "Downloading: Start Runner") - { - CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "Desktop", "Start Runner Setup.exe"), "StartRunner"); - } - if (appName.Text == "Downloading: Error Blaster") - { - CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "Desktop", "Error Blaster Setup.exe"), "ErrorBlaster"); - } - if (appName.Text == "Downloading: Skindows 95") - { - CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "Desktop", "Skindows 95 Setup.exe"), "Skindows95Setup"); - } - if (appName.Text == "Downloading: Time Distorter") - { - CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "Desktop", "Time Distorter Setup.exe"), "time distorter setup"); - } */ - ((Form)this.TopLevelControl).Close(); - dlTimer.Stop(); - } - else - { - progBar.Maximum = amountToDL; - progBar.Value = amountDLed; - } - amountLbl.Text = $"Downloaded {amountDLed} KB out of {amountToDL}"; - } - - private void dlSpeed_Tick(object sender, EventArgs e) - { - transferLbl.Text = $"Transfer speed: {downloadSpeed()} KB/s"; - } - } -} |
