aboutsummaryrefslogtreecommitdiff
path: root/Histacom2/GlobalPrograms/InstallerPanes/ProgressPane.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Histacom2/GlobalPrograms/InstallerPanes/ProgressPane.cs')
-rw-r--r--Histacom2/GlobalPrograms/InstallerPanes/ProgressPane.cs38
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();
+ }
+ }
+}