diff options
| author | lempamo <[email protected]> | 2017-09-24 15:20:55 -0400 |
|---|---|---|
| committer | lempamo <[email protected]> | 2017-09-24 15:20:55 -0400 |
| commit | 9e96ca19ed0904e7c80496071b0d7efdde405414 (patch) | |
| tree | ab56237c7d4be359d489e40a6b8fdc6a9ec3e2e8 /Histacom2/GlobalPrograms/InstallerPanes/ProgressPane.cs | |
| parent | d55b0e22ae5006892e8a95d2f188a773dccada77 (diff) | |
| download | histacom2-9e96ca19ed0904e7c80496071b0d7efdde405414.tar.gz histacom2-9e96ca19ed0904e7c80496071b0d7efdde405414.tar.bz2 histacom2-9e96ca19ed0904e7c80496071b0d7efdde405414.zip | |
some more installer stuff
Diffstat (limited to 'Histacom2/GlobalPrograms/InstallerPanes/ProgressPane.cs')
| -rw-r--r-- | Histacom2/GlobalPrograms/InstallerPanes/ProgressPane.cs | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/Histacom2/GlobalPrograms/InstallerPanes/ProgressPane.cs b/Histacom2/GlobalPrograms/InstallerPanes/ProgressPane.cs new file mode 100644 index 0000000..0a5cb60 --- /dev/null +++ b/Histacom2/GlobalPrograms/InstallerPanes/ProgressPane.cs @@ -0,0 +1,38 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Drawing; +using System.Data; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using Histacom2.Engine; + +namespace Histacom2.GlobalPrograms.InstallerPanes +{ + public partial class ProgressPane : UserControl + { + public ProgressPane() + { + InitializeComponent(); + } + + private void DirectoryPane_Load(object sender, EventArgs e) + { + classicLabel2.Text = $"Please wait while setup installs {((WinClassicInstaller)Parent.Parent).progName} on your computer. "; + Timer t = new Timer(); + t.Interval = 200; + t.Tick += (s, a) => + { + if (progressBar1.Value == 100) + { + ((WinClassicInstaller)Parent.Parent).classicButton2.PerformClick(); + t.Stop(); + } + progressBar1.Value += 4; + }; + t.Start(); + } + } +} |
