aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/OS/Win95/Win95Apps
diff options
context:
space:
mode:
authorJayXKanz666 <[email protected]>2017-07-08 01:23:47 +0200
committerJayXKanz666 <[email protected]>2017-07-08 01:23:47 +0200
commitfe3d0f5a0ab06ab1964b9463e36f8a1f8b77af37 (patch)
tree33020f602d1891cd7ff0a87c18a2d20d05ebbecd /TimeHACK.Main/OS/Win95/Win95Apps
parent7f8f13dce6ab5e817b76c82bd5230ad167604276 (diff)
parent88711b440b3a55d09118d2c42b1bb8930936eb90 (diff)
downloadhistacom2-fe3d0f5a0ab06ab1964b9463e36f8a1f8b77af37.tar.gz
histacom2-fe3d0f5a0ab06ab1964b9463e36f8a1f8b77af37.tar.bz2
histacom2-fe3d0f5a0ab06ab1964b9463e36f8a1f8b77af37.zip
Merge remote-tracking branch 'refs/remotes/TimeHACKDevs/master'
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95Apps')
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/Win95Installer.cs21
1 files changed, 17 insertions, 4 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/Win95Installer.cs b/TimeHACK.Main/OS/Win95/Win95Apps/Win95Installer.cs
index e3924ee..c6e125f 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/Win95Installer.cs
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/Win95Installer.cs
@@ -13,9 +13,17 @@ namespace TimeHACK.OS.Win95.Win95Apps
public partial class Win95Installer : UserControl
{
public int installStage = 0;
+ private string prog;
private Timer installbar = new Timer();
- public Win95Installer()
+ public event EventHandler InstallCompleted;
+
+ protected void OnInstallCompleted(EventArgs e)
+ {
+ if (InstallCompleted != null) InstallCompleted(this, e);
+ }
+
+ public Win95Installer(string progName)
{
InitializeComponent();
label1.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
@@ -23,17 +31,21 @@ namespace TimeHACK.OS.Win95.Win95Apps
label3.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
label4.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
label5.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
+ label6.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
+ label7.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
checkBox1.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
cancelbutton1.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2);
nextbutton1.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2);
backbutton1.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2);
+ prog = progName;
}
private void Win95Installer_Load(object sender, EventArgs e)
{
- label1.Text.Replace("GenericName", installname.Text);
- label3.Text.Replace("GenericName", installname.Text);
- label4.Text.Replace("GenericName", installname.Text);
+ label1.Text = label1.Text.Replace("GenericName", prog);
+ label3.Text = label3.Text.Replace("GenericName", prog);
+ label4.Text = label4.Text.Replace("GenericName", prog);
+ label7.Text = label7.Text.Replace("GenericName", prog);
installbar.Tick += Installbar_Tick;
}
@@ -45,6 +57,7 @@ namespace TimeHACK.OS.Win95.Win95Apps
}
else
{
+ OnInstallCompleted(EventArgs.Empty);
panel3.Hide();
panel4.Show();
backbutton1.Hide();