diff options
Diffstat (limited to 'TimeHACK.Main')
| -rw-r--r-- | TimeHACK.Main/TimeHACK.Main.csproj | 2 | ||||
| -rw-r--r-- | TimeHACK.Main/WinClassicForms/WinClassicDownloader.Designer.cs | 7 | ||||
| -rw-r--r-- | TimeHACK.Main/WinClassicForms/WinClassicDownloader.cs | 24 | ||||
| -rw-r--r-- | TimeHACK.Main/WinClassicForms/WinClassicDownloader.resx | 3 | ||||
| -rw-r--r-- | TimeHACK.Main/obj/Release/CoreCompileInputs.cache | 2 | ||||
| -rw-r--r-- | TimeHACK.Main/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache | bin | 13021 -> 12805 bytes | |||
| -rw-r--r-- | TimeHACK.Main/obj/Release/TimeHACK.Properties.Resources.resources | bin | 3836120 -> 3836120 bytes | |||
| -rw-r--r-- | TimeHACK.Main/obj/Release/TimeHACK.TitleScreen.resources | bin | 193409 -> 193409 bytes | |||
| -rw-r--r-- | TimeHACK.Main/obj/Release/TimeHACK.WinClassicTemplate.resources | bin | 0 -> 2609 bytes |
9 files changed, 32 insertions, 6 deletions
diff --git a/TimeHACK.Main/TimeHACK.Main.csproj b/TimeHACK.Main/TimeHACK.Main.csproj index 69a2769..5f54cca 100644 --- a/TimeHACK.Main/TimeHACK.Main.csproj +++ b/TimeHACK.Main/TimeHACK.Main.csproj @@ -139,7 +139,7 @@ <DependentUpon>WinClassicInstaller.cs</DependentUpon> </Compile> <Compile Include="WinClassicForms\WinClassicIE4.cs"> - <SubType>Form</SubType> + <SubType>UserControl</SubType> </Compile> <Compile Include="WinClassicForms\WinClassicIE4.Designer.cs"> <DependentUpon>WinClassicIE4.cs</DependentUpon> diff --git a/TimeHACK.Main/WinClassicForms/WinClassicDownloader.Designer.cs b/TimeHACK.Main/WinClassicForms/WinClassicDownloader.Designer.cs index 20d218f..cd0b55c 100644 --- a/TimeHACK.Main/WinClassicForms/WinClassicDownloader.Designer.cs +++ b/TimeHACK.Main/WinClassicForms/WinClassicDownloader.Designer.cs @@ -35,6 +35,7 @@ this.locationLbl = new System.Windows.Forms.Label(); this.transferLbl = new System.Windows.Forms.Label(); this.dlTimer = new System.Windows.Forms.Timer(this.components); + this.dlSpeed = new System.Windows.Forms.Timer(this.components); this.SuspendLayout(); // // progBar @@ -88,6 +89,11 @@ this.dlTimer.Interval = 1000; this.dlTimer.Tick += new System.EventHandler(this.dlTimer_Tick); // + // dlSpeed + // + this.dlSpeed.Interval = 750; + this.dlSpeed.Tick += new System.EventHandler(this.dlSpeed_Tick); + // // WinClassicDownloader // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -113,5 +119,6 @@ internal System.Windows.Forms.Label locationLbl; internal System.Windows.Forms.Label transferLbl; private System.Windows.Forms.Timer dlTimer; + private System.Windows.Forms.Timer dlSpeed; } } diff --git a/TimeHACK.Main/WinClassicForms/WinClassicDownloader.cs b/TimeHACK.Main/WinClassicForms/WinClassicDownloader.cs index b5aa521..4cdcd43 100644 --- a/TimeHACK.Main/WinClassicForms/WinClassicDownloader.cs +++ b/TimeHACK.Main/WinClassicForms/WinClassicDownloader.cs @@ -9,9 +9,20 @@ namespace TimeHACK.WinClassicForms 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 downloadSpeed = 8; int amountDLed = 0; Windows95 Windows95 = new Windows95(); @@ -19,13 +30,13 @@ namespace TimeHACK.WinClassicForms private void WinClassicDownloader_Load(object sender, EventArgs e) { dlTimer.Start(); - transferLbl.Text = ("Transfer speed: " + downloadSpeed + " KB/s"); + dlSpeed.Start(); } private void dlTimer_Tick(object sender, EventArgs e) { - amountDLed = amountDLed + downloadSpeed; - if(downloadSpeed > amountToDL - amountDLed){ + amountDLed = amountDLed + 8; + if(8 > amountToDL - amountDLed){ progBar.Value = 100; amountLbl.Text = ("Downloaded " + amountDLed + " KB out of " + amountToDL + " KB"); @@ -67,5 +78,10 @@ namespace TimeHACK.WinClassicForms } amountLbl.Text = ("Downloaded " + amountDLed + " KB out of " + amountToDL); } + + private void dlSpeed_Tick(object sender, EventArgs e) + { + transferLbl.Text = ("Transfer speed: " + DownloadSpeed("") + " KB/s"); + } } } diff --git a/TimeHACK.Main/WinClassicForms/WinClassicDownloader.resx b/TimeHACK.Main/WinClassicForms/WinClassicDownloader.resx index e5280c3..daf1933 100644 --- a/TimeHACK.Main/WinClassicForms/WinClassicDownloader.resx +++ b/TimeHACK.Main/WinClassicForms/WinClassicDownloader.resx @@ -120,4 +120,7 @@ <metadata name="dlTimer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <value>17, 17</value> </metadata> + <metadata name="dlSpeed.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>110, 17</value> + </metadata> </root>
\ No newline at end of file diff --git a/TimeHACK.Main/obj/Release/CoreCompileInputs.cache b/TimeHACK.Main/obj/Release/CoreCompileInputs.cache index 387d3d4..127cfef 100644 --- a/TimeHACK.Main/obj/Release/CoreCompileInputs.cache +++ b/TimeHACK.Main/obj/Release/CoreCompileInputs.cache @@ -1 +1 @@ -a6a030bebb8324fd56257f6ce480ed30b633ae1e +b3db32e3541a4770807ecd8afe2fc9c3e7d8371d diff --git a/TimeHACK.Main/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache b/TimeHACK.Main/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache Binary files differindex 9c508b5..d9d452e 100644 --- a/TimeHACK.Main/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache +++ b/TimeHACK.Main/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache diff --git a/TimeHACK.Main/obj/Release/TimeHACK.Properties.Resources.resources b/TimeHACK.Main/obj/Release/TimeHACK.Properties.Resources.resources Binary files differindex bd42262..02404da 100644 --- a/TimeHACK.Main/obj/Release/TimeHACK.Properties.Resources.resources +++ b/TimeHACK.Main/obj/Release/TimeHACK.Properties.Resources.resources diff --git a/TimeHACK.Main/obj/Release/TimeHACK.TitleScreen.resources b/TimeHACK.Main/obj/Release/TimeHACK.TitleScreen.resources Binary files differindex 96f2158..51ab95c 100644 --- a/TimeHACK.Main/obj/Release/TimeHACK.TitleScreen.resources +++ b/TimeHACK.Main/obj/Release/TimeHACK.TitleScreen.resources diff --git a/TimeHACK.Main/obj/Release/TimeHACK.WinClassicTemplate.resources b/TimeHACK.Main/obj/Release/TimeHACK.WinClassicTemplate.resources Binary files differnew file mode 100644 index 0000000..2a79d99 --- /dev/null +++ b/TimeHACK.Main/obj/Release/TimeHACK.WinClassicTemplate.resources |
