aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main
diff options
context:
space:
mode:
authorAlex-TIMEHACK <[email protected]>2017-05-01 10:02:13 +0100
committerAlex-TIMEHACK <[email protected]>2017-05-01 10:02:13 +0100
commite557e46076e0fe44fb03633665ae40c7d7444461 (patch)
tree9c3dc199d504e2dc92f74eeb403be4510e6c85b3 /TimeHACK.Main
parente0c8a9521719dcb6d702d489fed05ea28c6afe94 (diff)
downloadhistacom2-e557e46076e0fe44fb03633665ae40c7d7444461.tar.gz
histacom2-e557e46076e0fe44fb03633665ae40c7d7444461.tar.bz2
histacom2-e557e46076e0fe44fb03633665ae40c7d7444461.zip
Added taskbar to common applications
Diffstat (limited to 'TimeHACK.Main')
-rw-r--r--TimeHACK.Main/OS/Win95/Win95.cs29
1 files changed, 25 insertions, 4 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95.cs b/TimeHACK.Main/OS/Win95/Win95.cs
index d0ea75e..63c493a 100644
--- a/TimeHACK.Main/OS/Win95/Win95.cs
+++ b/TimeHACK.Main/OS/Win95/Win95.cs
@@ -172,20 +172,33 @@ namespace TimeHACK.OS.Win95
private void windowManagerTestToolStripMenuItem_Click(object sender, EventArgs e)
{
TestApp test = new TestApp();
- wm.startWin95(test, "TestApp", null, true, true);
+ WinClassic app = wm.startWin95(test, "TestApp", null, true, true);
+ AddTaskBarItem(app, app.Tag.ToString(), "TestApp", null);
+ app.BringToFront();
+ startmenu.Hide();
}
private void downloaderTestToolStripMenuItem_Click(object sender, EventArgs e)
{
WinClassicDownloader opendownload = new WinClassicDownloader();
- wm.startWin95(opendownload, "Downloader", null, false, true);
+ WinClassic app = wm.startWin95(opendownload, "Downloader", null, false, true);
opendownload.appName.Text = "Downloading: Survive The Day";
+
+ AddTaskBarItem(app, app.Tag.ToString(), "Downloader", null);
+
+ app.BringToFront();
+ startmenu.Hide();
}
private void installerTestToolStripMenuItem_Click(object sender, EventArgs e)
{
WinClassicInstaller openinstaller = new WinClassicInstaller();
- wm.startWin95(openinstaller, "Installer", null, false, true);
+ WinClassic app = wm.startWin95(openinstaller, "Installer", null, false, true);
+
+ AddTaskBarItem(app, app.Tag.ToString(), "Installer", null);
+
+ app.BringToFront();
+ startmenu.Hide();
}
private void InternetExplorerToolStripMenuItem_Click(object sender, EventArgs e)
@@ -212,6 +225,7 @@ namespace TimeHACK.OS.Win95
{
if (ie != null) { wm.startInfobox95("Error Opening Internet Explorer", "An instance of Internet Explorer 4 is already open.", Properties.Resources.Win95Warning); return; }
ie = wm.startWin95(new WinClassicIE4(), "Internet Explorer 4", Properties.Resources.Win95IconIE4, true, true);
+ AddTaskBarItem(ie, ie.Tag.ToString(), "Internet Explorer 4", Properties.Resources.Win95IconIE4);
ie.BringToFront();
ie.FormClosing += new FormClosingEventHandler(InternetExplorer4_Closing);
startmenu.Hide();
@@ -220,6 +234,7 @@ namespace TimeHACK.OS.Win95
WinClassicInstaller inst = new WinClassicInstaller();
inst.installname.Text = "Web Chat 1998";
WinClassic app = wm.startWin95(inst, "Web Chat Setup", null, true, true);
+ AddTaskBarItem(app, app.Tag.ToString(), "Web Chat Setup", null);
app.BringToFront();
startmenu.Hide();
}
@@ -229,12 +244,18 @@ namespace TimeHACK.OS.Win95
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, Image erroricon)!", Properties.Resources.Win95Info);
+ WinClassic app = 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, Image erroricon)!", Properties.Resources.Win95Info);
+
+ app.BringToFront();
+ startmenu.Hide();
}
private void WebChatToolStripMenuItem_Click(object sender, EventArgs e)
{
WebChat1998 wc = new WebChat1998();
WinClassic app = wm.startWin95(wc, "Web Chat 1998", null, true, true);
+
+ AddTaskBarItem(app, app.Tag.ToString(), "Web Chat 1998", null);
+
app.BringToFront();
startmenu.Hide();
}