diff options
| author | Alex-TIMEHACK <[email protected]> | 2017-10-24 11:27:51 +0100 |
|---|---|---|
| committer | Alex-TIMEHACK <[email protected]> | 2017-10-24 11:27:51 +0100 |
| commit | 3d2e297b43cbd7f99269c9a58b25651a83ccef3c (patch) | |
| tree | ef636bc39af2b880af61acde98a2c5fb9e92cbaa /Histacom2/GlobalPrograms/WinClassicInstaller.cs | |
| parent | e5f29e7b53322e11578acd0deb3b1d454998bb77 (diff) | |
| parent | aff052b475abc5d4035369a85fa471f62cad021b (diff) | |
| download | histacom2-3d2e297b43cbd7f99269c9a58b25651a83ccef3c.tar.gz histacom2-3d2e297b43cbd7f99269c9a58b25651a83ccef3c.tar.bz2 histacom2-3d2e297b43cbd7f99269c9a58b25651a83ccef3c.zip | |
Updated my fork!
Diffstat (limited to 'Histacom2/GlobalPrograms/WinClassicInstaller.cs')
| -rw-r--r-- | Histacom2/GlobalPrograms/WinClassicInstaller.cs | 41 |
1 files changed, 34 insertions, 7 deletions
diff --git a/Histacom2/GlobalPrograms/WinClassicInstaller.cs b/Histacom2/GlobalPrograms/WinClassicInstaller.cs index 4e0098c..3d16381 100644 --- a/Histacom2/GlobalPrograms/WinClassicInstaller.cs +++ b/Histacom2/GlobalPrograms/WinClassicInstaller.cs @@ -1,11 +1,4 @@ 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; namespace Histacom2.GlobalPrograms @@ -15,6 +8,13 @@ namespace Histacom2.GlobalPrograms public string progName; public int state = 0; + public event EventHandler InstallCompleted; + + protected void OnInstallCompleted(EventArgs e) + { + if (InstallCompleted != null) InstallCompleted(this, e); + } + public WinClassicInstaller(string prog) { InitializeComponent(); @@ -40,6 +40,33 @@ namespace Histacom2.GlobalPrograms state = 1; classicButton2.Enabled = false; } + else if (state == 1) + { + var dir = new InstallerPanes.DirectoryPane(); + dir.Parent = panel1; + state = 2; + } + else if (state == 2) + { + classicButton3.Hide(); + classicButton1.Enabled = false; + classicButton2.Enabled = false; + var p = new InstallerPanes.ProgressPane(); + p.Parent = panel1; + state = 3; + } + else if (state == 3) + { + OnInstallCompleted(EventArgs.Empty); + var c = new InstallerPanes.CompletePane(); + c.Parent = panel1; + classicButton3.Enabled = false; + classicButton2.Enabled = true; + classicButton2.Text = "Finish"; + classicButton2.Invalidate(); + state = 4; + } + else ParentForm.Close(); } } } |
