diff options
| author | AShifter <[email protected]> | 2017-03-31 14:17:32 -0600 |
|---|---|---|
| committer | AShifter <[email protected]> | 2017-03-31 14:17:32 -0600 |
| commit | 82557462d1bb0a7fb776692cd0887b00919999d8 (patch) | |
| tree | d885bb0fb9b2d518058e6e0025dbf29fed0db4bb /TimeHACK.Main/OS/Win95/Win95.cs | |
| parent | e2213726e627553783571fa631dd032f773f8794 (diff) | |
| download | histacom2-82557462d1bb0a7fb776692cd0887b00919999d8.tar.gz histacom2-82557462d1bb0a7fb776692cd0887b00919999d8.tar.bz2 histacom2-82557462d1bb0a7fb776692cd0887b00919999d8.zip | |
Added Infobox
Added an Infobox into the TimeHACK.Engine and removed extra
WindowManager creations in Win95.cs
also probably did some other honeyfries
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95.cs')
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95.cs | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95.cs b/TimeHACK.Main/OS/Win95/Win95.cs index 90ac843..0c6e3c7 100644 --- a/TimeHACK.Main/OS/Win95/Win95.cs +++ b/TimeHACK.Main/OS/Win95/Win95.cs @@ -3,7 +3,7 @@ using System.Drawing; using System.IO; using System.Media; using System.Windows.Forms; -using TimeHACK.Engine; +using TimeHACK.Main; using TimeHACK.WinClassicForms; namespace TimeHACK @@ -12,6 +12,7 @@ namespace TimeHACK { private SoundPlayer startsound; private SoundPlayer stopsound; + public WindowManager wm = new WindowManager(); public bool webchatInstalled = false; @@ -127,31 +128,27 @@ namespace TimeHACK } private void windowManagerTestToolStripMenuItem_Click(object sender, EventArgs e) { - WindowManager wm = new WindowManager(); TestApp test = new TestApp(); - wm.startWinClassic(test, "TestApp", null, true, true); + wm.startWin95(test, "TestApp", null, true, true); } private void downloaderTestToolStripMenuItem_Click(object sender, EventArgs e) { WinClassicDownloader opendownload = new WinClassicDownloader(); - WindowManager wm = new WindowManager(); - wm.startWinClassic(opendownload, "Downloader", null, false, true); + wm.startWin95(opendownload, "Downloader", null, false, true); opendownload.appName.Text = "Downloading: Survive The Day"; } private void installerTestToolStripMenuItem_Click(object sender, EventArgs e) { WinClassicInstaller openinstaller = new WinClassicInstaller(); - WindowManager wm = new WindowManager(); - wm.startWinClassic(openinstaller, "Installer", null, false, true); + wm.startWin95(openinstaller, "Installer", null, false, true); } private void InternetExplorerToolStripMenuItem_Click(object sender, EventArgs e) { WinClassicIE4 ie = new WinClassicIE4(); - WindowManager wm = new WindowManager(); - Engine.Template.WinClassic app = wm.startWinClassic(ie, "Internet Explorer 4", null, true, true); + Main.Template.WinClassic app = wm.startWin95(ie, "Internet Explorer 4", null, true, true); app.BringToFront(); startmenu.Hide(); } @@ -169,22 +166,25 @@ namespace TimeHACK if (objListViewItem.Text == "Internet Explorer") { WinClassicIE4 ie = new WinClassicIE4(); - WindowManager wm = new WindowManager(); - Engine.Template.WinClassic app = wm.startWinClassic(ie, "Internet Explorer 4", null, true, true); + Main.Template.WinClassic app = wm.startWin95(ie, "Internet Explorer 4", null, true, true); 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, "Web Chat Setup", null, true, true); + Main.Template.WinClassic app = wm.startWin95(inst, "Web Chat Setup", null, true, true); app.BringToFront(); startmenu.Hide(); } } } } + + private void infoboxTestToolStripMenuItem_Click(object sender, EventArgs e) + { + wm.startInfobox95("AShifter's Infobox", "This is the very first TimeHACK Infobox. It's really easy to call, too! \n Just use wm.startInfobox95(String title, String text)!"); + } } } |
