aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/WinClassicForms/WinClassicDownloader.cs
diff options
context:
space:
mode:
authorAShifter <[email protected]>2017-04-22 13:41:33 -0600
committerAShifter <[email protected]>2017-04-22 13:41:33 -0600
commit51177cd4c24b9b107726bdbae914d49f6b5fa7b5 (patch)
tree08d585cb8e2b0241aaede964a38973af42a1c470 /TimeHACK.Main/WinClassicForms/WinClassicDownloader.cs
parent5773e8ac9aeac2d395a700eac26d86db90c60c13 (diff)
parente6474bbf221d26d227e42174c4d1ab939987be2b (diff)
downloadhistacom2-51177cd4c24b9b107726bdbae914d49f6b5fa7b5.tar.gz
histacom2-51177cd4c24b9b107726bdbae914d49f6b5fa7b5.tar.bz2
histacom2-51177cd4c24b9b107726bdbae914d49f6b5fa7b5.zip
Merge remote-tracking branch 'refs/remotes/TimeHACKDevs/master'
Diffstat (limited to 'TimeHACK.Main/WinClassicForms/WinClassicDownloader.cs')
-rw-r--r--TimeHACK.Main/WinClassicForms/WinClassicDownloader.cs87
1 files changed, 0 insertions, 87 deletions
diff --git a/TimeHACK.Main/WinClassicForms/WinClassicDownloader.cs b/TimeHACK.Main/WinClassicForms/WinClassicDownloader.cs
deleted file mode 100644
index 857c3b8..0000000
--- a/TimeHACK.Main/WinClassicForms/WinClassicDownloader.cs
+++ /dev/null
@@ -1,87 +0,0 @@
-using System;
-using System.Windows.Forms;
-using TimeHACK.Engine;
-
-namespace TimeHACK.WinClassicForms
-{
- public partial class WinClassicDownloader : UserControl
- {
- public WinClassicDownloader()
- {
- InitializeComponent();
-
- }
-
- private string DownloadSpeed(string str)
- {
- Random rnd = new Random();
- int dl1 = rnd.Next(7, 9);
- int dl2 = rnd.Next(1, 9);
- int dl3 = rnd.Next(1, 9);
- string speed = dl1.ToString() + "." + dl2.ToString() + dl3.ToString();
- return speed;
- }
-
- int amountToDL = 100;
- int amountDLed = 0;
- Windows95 Windows95 = new Windows95();
-
-
- 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 + " 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")
- {
- TitleScreen.frm95.desktopicons.Items.Add("Web Chat Setup", imageIndex: 11);
- }
- if (appName.Text == "Downloading: hwcv.exe")
- {
- Windows95.desktopicons.Items.Add("hwcv.exe", imageIndex: 14);
- }
- 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);
- }
-
- private void dlSpeed_Tick(object sender, EventArgs e)
- {
- transferLbl.Text = ("Transfer speed: " + DownloadSpeed("") + " KB/s");
- }
- }
-}