From 24ccb6a3350ee9a3ed8abea8e6f3eb6fbf45cf7f Mon Sep 17 00:00:00 2001 From: lempamo Date: Thu, 24 Aug 2017 10:53:32 -0400 Subject: completed guess the number and other things --- Histacom2/GlobalPrograms/WinClassicDownloader.cs | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) (limited to 'Histacom2/GlobalPrograms') diff --git a/Histacom2/GlobalPrograms/WinClassicDownloader.cs b/Histacom2/GlobalPrograms/WinClassicDownloader.cs index f454bdb..ba432d8 100644 --- a/Histacom2/GlobalPrograms/WinClassicDownloader.cs +++ b/Histacom2/GlobalPrograms/WinClassicDownloader.cs @@ -18,7 +18,7 @@ namespace Histacom2.OS.Win95.Win95Apps return rnd.Next(7, 9).ToString() + "." + rnd.Next(7, 9).ToString() + rnd.Next(7, 9).ToString(); } - int amountToDL = 100; + public int amountToDL = 100; int amountDLed = 0; private void WinClassicDownloader_Load(object sender, EventArgs e) @@ -32,7 +32,7 @@ namespace Histacom2.OS.Win95.Win95Apps amountDLed = amountDLed + 8; if (8 > amountToDL - amountDLed) { - progBar.Value = 100; + progBar.Value = amountToDL; amountLbl.Text = $"Downloaded {amountDLed} KB out of {amountToDL}"; switch (appName.Text) @@ -44,14 +44,13 @@ namespace Histacom2.OS.Win95.Win95Apps 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); + CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "Desktop"), "Time Distorter Setup.exe", "time distorter setup", 11, 21583); + break; + case "Downloading: Guess The Number V1": + CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "Desktop"), "Guess The Number V1 Setup.exe", "gtnv1 setup", 11, 16483); 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") + /* if (appName.Text == "Downloading: Start Runner") { CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "Desktop", "Start Runner Setup.exe"), "StartRunner"); } @@ -62,10 +61,6 @@ namespace Histacom2.OS.Win95.Win95Apps 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(); -- cgit v1.2.3