From 9e96ca19ed0904e7c80496071b0d7efdde405414 Mon Sep 17 00:00:00 2001 From: lempamo Date: Sun, 24 Sep 2017 15:20:55 -0400 Subject: some more installer stuff --- .../GlobalPrograms/InstallerPanes/ProgressPane.cs | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Histacom2/GlobalPrograms/InstallerPanes/ProgressPane.cs (limited to 'Histacom2/GlobalPrograms/InstallerPanes/ProgressPane.cs') 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(); + } + } +} -- cgit v1.2.3