diff options
Diffstat (limited to 'TimeHACK.Main/Windows95.cs')
| -rw-r--r-- | TimeHACK.Main/Windows95.cs | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/TimeHACK.Main/Windows95.cs b/TimeHACK.Main/Windows95.cs index bfae46b..44254e3 100644 --- a/TimeHACK.Main/Windows95.cs +++ b/TimeHACK.Main/Windows95.cs @@ -13,6 +13,8 @@ namespace TimeHACK private SoundPlayer startsound; private SoundPlayer stopsound; + public bool webchatInstalled = false; + // Init the form public Windows95() { @@ -41,6 +43,8 @@ namespace TimeHACK // Set the StartMenu seperator startmenuitems.Items.Insert(6, new ToolStripSeparator()); + + this.SendToBack(); } #region StartMenu @@ -60,6 +64,7 @@ namespace TimeHACK private void startbutton_Click(object sender, EventArgs e) { startmenu.Show(); + startmenu.BringToFront(); } // Shutdown button @@ -124,14 +129,14 @@ namespace TimeHACK { WindowManager wm = new WindowManager(); TestApp test = new TestApp(); - wm.startWinClassic(test, "TestApp", null, true, true); + wm.startWinClassic(test, "TestApp", null, true, true, new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)))); } private void downloaderTestToolStripMenuItem_Click(object sender, EventArgs e) { WinClassicDownloader opendownload = new WinClassicDownloader(); WindowManager wm = new WindowManager(); - wm.startWinClassic(opendownload, "Downloader", null, false, true); + wm.startWinClassic(opendownload, "Downloader", null, false, true, new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)))); opendownload.appName.Text = "Downloading: Survive The Day"; } @@ -139,14 +144,15 @@ namespace TimeHACK { WinClassicInstaller openinstaller = new WinClassicInstaller(); WindowManager wm = new WindowManager(); - wm.startWinClassic(openinstaller, "Installer", null, false, true); + wm.startWinClassic(openinstaller, "Installer", null, false, true, new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)))); } private void InternetExplorerToolStripMenuItem_Click(object sender, EventArgs e) { WinClassicIE4 ie = new WinClassicIE4(); - ie.Show(); - ie.BringToFront(); + WindowManager wm = new WindowManager(); + Engine.Template.WinClassic app = wm.startWinClassic(ie, "Internet Explorer 4", null, true, true, new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)))); + app.BringToFront(); startmenu.Hide(); } @@ -164,7 +170,16 @@ namespace TimeHACK { WinClassicIE4 ie = new WinClassicIE4(); WindowManager wm = new WindowManager(); - wm.startWinClassic(ie, "Internet Explorer 4", null, true, true); + Engine.Template.WinClassic app = wm.startWinClassic(ie, "Internet Explorer 4", null, true, true, new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)))); + app.BringToFront(); + startmenu.Hide(); + } else if (objListViewItem.Text == "Web Chat Setup") + { + WinClassicInstaller inst = new WinClassicInstaller(); + WindowManager wm = new WindowManager(); + inst.installname.Text = "Web Chat 1998"; + Engine.Template.WinClassic app = wm.startWinClassic(inst, "Internet Explorer 4", null, true, true, new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)))); + app.BringToFront(); startmenu.Hide(); } } |
