aboutsummaryrefslogtreecommitdiff
path: root/Histacom2/GlobalPrograms/InstallerPanes/ProgressPane.cs
diff options
context:
space:
mode:
authorAlex-TIMEHACK <[email protected]>2017-10-24 11:27:51 +0100
committerAlex-TIMEHACK <[email protected]>2017-10-24 11:27:51 +0100
commit3d2e297b43cbd7f99269c9a58b25651a83ccef3c (patch)
treeef636bc39af2b880af61acde98a2c5fb9e92cbaa /Histacom2/GlobalPrograms/InstallerPanes/ProgressPane.cs
parente5f29e7b53322e11578acd0deb3b1d454998bb77 (diff)
parentaff052b475abc5d4035369a85fa471f62cad021b (diff)
downloadhistacom2-3d2e297b43cbd7f99269c9a58b25651a83ccef3c.tar.gz
histacom2-3d2e297b43cbd7f99269c9a58b25651a83ccef3c.tar.bz2
histacom2-3d2e297b43cbd7f99269c9a58b25651a83ccef3c.zip
Updated my fork!
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..3eff2f1
--- /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();
+ }
+ else progressBar1.Value += 4;
+ };
+ t.Start();
+ }
+ }
+}