diff options
| author | FloppyDiskDrive <[email protected]> | 2017-09-01 21:26:30 -0500 |
|---|---|---|
| committer | FloppyDiskDrive <[email protected]> | 2017-09-01 21:26:30 -0500 |
| commit | c51f7230320b9d59c7f49aeab1263242855496cc (patch) | |
| tree | 585e9e8dc09efc96ef067e2f83607f0875ea03a7 | |
| parent | b8b914d600a18a25448c0ddcde963a3e9a30a534 (diff) | |
| download | histacom2-c51f7230320b9d59c7f49aeab1263242855496cc.tar.gz histacom2-c51f7230320b9d59c7f49aeab1263242855496cc.tar.bz2 histacom2-c51f7230320b9d59c7f49aeab1263242855496cc.zip | |
Cleaned up the Downloader UI a bit more
Added the classic progressbar
| -rw-r--r-- | Histacom2/GlobalPrograms/WinClassicDownloader.Designer.cs | 20 | ||||
| -rw-r--r-- | Histacom2/GlobalPrograms/WinClassicDownloader.cs | 6 |
2 files changed, 23 insertions, 3 deletions
diff --git a/Histacom2/GlobalPrograms/WinClassicDownloader.Designer.cs b/Histacom2/GlobalPrograms/WinClassicDownloader.Designer.cs index a3ae890..d62f676 100644 --- a/Histacom2/GlobalPrograms/WinClassicDownloader.Designer.cs +++ b/Histacom2/GlobalPrograms/WinClassicDownloader.Designer.cs @@ -36,6 +36,7 @@ this.dlTimer = new System.Windows.Forms.Timer(this.components); this.dlSpeed = new System.Windows.Forms.Timer(this.components); this.progBar = new System.Windows.Forms.ProgressBar(); + this.progressBar1 = new Histacom2.UI.ProgressBar(); this.SuspendLayout(); // // amountLbl @@ -94,11 +95,29 @@ this.progBar.Size = new System.Drawing.Size(399, 23); this.progBar.TabIndex = 15; // + // progressBar1 + // + this.progressBar1.BlockSpacing = 5; + this.progressBar1.BlockWidth = 20; + this.progressBar1.Location = new System.Drawing.Point(6, 32); + this.progressBar1.MarqueeWidth = 125; + this.progressBar1.Maximum = 100D; + this.progressBar1.Minimum = 0D; + this.progressBar1.Name = "progressBar1"; + this.progressBar1.ProgressColor = System.Drawing.Color.DarkBlue; + this.progressBar1.ShowText = false; + this.progressBar1.Size = new System.Drawing.Size(399, 23); + this.progressBar1.Style = System.Windows.Forms.ProgressBarStyle.Continuous; + this.progressBar1.TabIndex = 16; + this.progressBar1.Text = "progressBar1"; + this.progressBar1.Value = 0D; + // // WinClassicDownloader // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.Color.Silver; + this.Controls.Add(this.progressBar1); this.Controls.Add(this.progBar); this.Controls.Add(this.amountLbl); this.Controls.Add(this.appName); @@ -120,5 +139,6 @@ private System.Windows.Forms.Timer dlTimer; private System.Windows.Forms.Timer dlSpeed; private System.Windows.Forms.ProgressBar progBar; + private UI.ProgressBar progressBar1; } } diff --git a/Histacom2/GlobalPrograms/WinClassicDownloader.cs b/Histacom2/GlobalPrograms/WinClassicDownloader.cs index ba432d8..b809760 100644 --- a/Histacom2/GlobalPrograms/WinClassicDownloader.cs +++ b/Histacom2/GlobalPrograms/WinClassicDownloader.cs @@ -32,7 +32,7 @@ namespace Histacom2.OS.Win95.Win95Apps amountDLed = amountDLed + 8; if (8 > amountToDL - amountDLed) { - progBar.Value = amountToDL; + progressBar1.Value = amountToDL; amountLbl.Text = $"Downloaded {amountDLed} KB out of {amountToDL}"; switch (appName.Text) @@ -67,8 +67,8 @@ namespace Histacom2.OS.Win95.Win95Apps } else { - progBar.Maximum = amountToDL; - progBar.Value = amountDLed; + progressBar1.Maximum = amountToDL; + progressBar1.Value = amountDLed; } amountLbl.Text = $"Downloaded {amountDLed} KB out of {amountToDL}"; } |
