aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/WinClassicForms/WinClassicDownloader.cs
diff options
context:
space:
mode:
authorlempamo <[email protected]>2017-03-26 20:10:32 -0400
committerlempamo <[email protected]>2017-03-26 20:10:32 -0400
commit83f1652ca5bd6c1fdfbebb70c41fef2e31d17b7d (patch)
tree16a37b1ce68466a51f56f354b98c8b95ce931a59 /TimeHACK.Main/WinClassicForms/WinClassicDownloader.cs
parentf16f3a8a3df33f46c4ec6c864447cced97c0f034 (diff)
parentf3ded1683916137c4d625565266f915492b2d4ad (diff)
downloadhistacom2-83f1652ca5bd6c1fdfbebb70c41fef2e31d17b7d.tar.gz
histacom2-83f1652ca5bd6c1fdfbebb70c41fef2e31d17b7d.tar.bz2
histacom2-83f1652ca5bd6c1fdfbebb70c41fef2e31d17b7d.zip
Merge remote-tracking branch 'refs/remotes/TimeHACKDevs/master'
Diffstat (limited to 'TimeHACK.Main/WinClassicForms/WinClassicDownloader.cs')
-rw-r--r--TimeHACK.Main/WinClassicForms/WinClassicDownloader.cs71
1 files changed, 71 insertions, 0 deletions
diff --git a/TimeHACK.Main/WinClassicForms/WinClassicDownloader.cs b/TimeHACK.Main/WinClassicForms/WinClassicDownloader.cs
new file mode 100644
index 0000000..b5aa521
--- /dev/null
+++ b/TimeHACK.Main/WinClassicForms/WinClassicDownloader.cs
@@ -0,0 +1,71 @@
+using System;
+using System.Windows.Forms;
+using TimeHACK.Engine;
+
+namespace TimeHACK.WinClassicForms
+{
+ public partial class WinClassicDownloader : UserControl
+ {
+ public WinClassicDownloader()
+ {
+ InitializeComponent();
+ }
+ int amountToDL = 100;
+ int downloadSpeed = 8;
+ int amountDLed = 0;
+ Windows95 Windows95 = new Windows95();
+
+
+ private void WinClassicDownloader_Load(object sender, EventArgs e)
+ {
+ dlTimer.Start();
+ transferLbl.Text = ("Transfer speed: " + downloadSpeed + " KB/s");
+ }
+
+ private void dlTimer_Tick(object sender, EventArgs e)
+ {
+ amountDLed = amountDLed + downloadSpeed;
+ if(downloadSpeed > amountToDL - amountDLed){
+ progBar.Value = 100;
+ amountLbl.Text = ("Downloaded " + amountDLed + " KB out of " + amountToDL + " KB");
+
+ if (appName.Text == "Downloading: Guess The Number")
+ {
+ Windows95.desktopicons.Items.Add("Guess The Number Setup", imageIndex: 8);
+ }
+ if (appName.Text == "Downloading: Start Runner")
+ {
+ Windows95.desktopicons.Items.Add("Start Runner Setup", imageIndex: 9);
+ }
+ if (appName.Text == "Downloading: Error Blaster")
+ {
+ Windows95.desktopicons.Items.Add("Error Blaster Setup", imageIndex: 10);
+ }
+ if (appName.Text == "Downloading: Skindows 95")
+ {
+ Windows95.desktopicons.Items.Add("Skindows 95 Setup", imageIndex: 12);
+ }
+ if (appName.Text == "Downloading: Web Chat")
+ {
+ Windows95.desktopicons.Items.Add("Web Chat Setup", imageIndex: 11);
+ }
+ if (appName.Text == "Downloading: hwcv.exe")
+ {
+ Windows95.desktopicons.Items.Add("hwcv.exe", imageIndex: 11);
+ }
+ if (appName.Text == "Downloading: Time Distorter")
+ {
+ Windows95.desktopicons.Items.Add("Time Distorter Setup", imageIndex: 13);
+ }
+ ((Form)this.TopLevelControl).Close();
+ dlTimer.Stop();
+ }
+ else
+ {
+ progBar.Maximum = amountToDL;
+ progBar.Value = amountDLed;
+ }
+ amountLbl.Text = ("Downloaded " + amountDLed + " KB out of " + amountToDL);
+ }
+ }
+}