aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/OS/Win95/Win95.cs
diff options
context:
space:
mode:
authorlempamo <[email protected]>2017-07-30 00:10:22 -0400
committerlempamo <[email protected]>2017-07-30 00:10:22 -0400
commit077fef3baf82e23a4a03bb3c73d83f8d8103fdb9 (patch)
tree7136fb69ca87b175aee39e6a04b4e998905f22a0 /TimeHACK.Main/OS/Win95/Win95.cs
parent71ccea956dc85e8b293dc8a30fbbf91b2709897f (diff)
downloadhistacom2-077fef3baf82e23a4a03bb3c73d83f8d8103fdb9.tar.gz
histacom2-077fef3baf82e23a4a03bb3c73d83f8d8103fdb9.tar.bz2
histacom2-077fef3baf82e23a4a03bb3c73d83f8d8103fdb9.zip
better infoboxes
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95.cs')
-rw-r--r--TimeHACK.Main/OS/Win95/Win95.cs22
1 files changed, 11 insertions, 11 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95.cs b/TimeHACK.Main/OS/Win95/Win95.cs
index 619f3ba..5d02b16 100644
--- a/TimeHACK.Main/OS/Win95/Win95.cs
+++ b/TimeHACK.Main/OS/Win95/Win95.cs
@@ -175,7 +175,7 @@ namespace TimeHACK.OS.Win95
// Give Year Code - NYI
private void taskbartime_Click(object sender, EventArgs e)
{
- //TODO: Set Up Save System
+
}
// Set the Clock
@@ -256,7 +256,7 @@ namespace TimeHACK.OS.Win95
private void InternetExplorerToolStripMenuItem_Click(object sender, EventArgs e)
{
- if (ie != null) { wm.StartInfobox95("Error Opening Internet Explorer", "An instance of Internet Explorer 4 is already open.", Properties.Resources.Win95Warning); return; }
+ if (ie != null) { wm.StartInfobox95("Error Opening Internet Explorer", "An instance of Internet Explorer 4 is already open.", InfoboxType.Warning, InfoboxButtons.OK); 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();
@@ -276,7 +276,7 @@ namespace TimeHACK.OS.Win95
{
if (objListViewItem.Text == "Internet Explorer")
{
- if (ie != null) { wm.StartInfobox95("Error Opening Internet Explorer", "An instance of Internet Explorer 4 is already open.", Properties.Resources.Win95Warning); return; }
+ if (ie != null) { wm.StartInfobox95("Error Opening Internet Explorer", "An instance of Internet Explorer 4 is already open.", InfoboxType.Warning, InfoboxButtons.OK); 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();
@@ -301,13 +301,13 @@ namespace TimeHACK.OS.Win95
}
else if (objListViewItem.Text == "Set Up The Microsoft Network") {
- wm.StartInfobox95("Microsoft Network", "The Microsoft Network is already set up!", Properties.Resources.Win95Info);
+ wm.StartInfobox95("Microsoft Network", "The Microsoft Network is already set up!", InfoboxType.Info, InfoboxButtons.OK);
} else if (objListViewItem.Text == "Outlook Express") {
- wm.StartInfobox95("Win32 Application", "That is not a valid Win32 Application.", Properties.Resources.Win95Error);
+ //wm.StartInfobox95("Win32 Application", "That is not a valid Win32 Application.", Properties.Resources.Win95Error);
}
else if (objListViewItem.Text == "Inbox")
{
- wm.StartInfobox95("Win32 Application", "That is not a valid Win32 Application.", Properties.Resources.Win95Error);
+ //wm.StartInfobox95("Win32 Application", "That is not a valid Win32 Application.", Properties.Resources.Win95Error);
}
else
{
@@ -340,7 +340,7 @@ namespace TimeHACK.OS.Win95
private void infoboxTestToolStripMenuItem_Click(object sender, EventArgs e)
{
- 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);
+ WinClassic app = wm.StartInfobox95("AShifter's Infobox", "This is the very first TimeHACK Infobox. It's really easy to call, too! \nJust use wm.startInfobox95(string title, string text, InfoboxType type, InfoboxButtons btns)!", InfoboxType.Info, InfoboxButtons.OK);
app.BringToFront();
startmenu.Hide();
@@ -514,7 +514,7 @@ namespace TimeHACK.OS.Win95
{
if (Directory.Exists(Path.Combine(ProfileWindowsDirectory, "Desktop", "New Folder")))
{
- wm.StartInfobox95("Windows Explorer", "A folder called New Folder already exists - please rename it.", Properties.Resources.Win95Error);
+ wm.StartInfobox95("Windows Explorer", "A folder called New Folder already exists - please rename it.", InfoboxType.Error, InfoboxButtons.OK);
}
else
{
@@ -527,7 +527,7 @@ namespace TimeHACK.OS.Win95
{
if (File.Exists(Path.Combine(ProfileWindowsDirectory, "Desktop", "New Text Document.txt")))
{
- wm.StartInfobox95("Windows Explorer", "A folder called New Text Document already exists - please rename it.", Properties.Resources.Win95Error);
+ wm.StartInfobox95("Windows Explorer", "A folder called New Text Document already exists - please rename it.", InfoboxType.Error, InfoboxButtons.OK);
}
else
{
@@ -562,11 +562,11 @@ namespace TimeHACK.OS.Win95
}
else
{
- wm.StartInfobox95("Windows Explorer", "This object cannot be deleted.", Properties.Resources.Win95Error);
+ wm.StartInfobox95("Windows Explorer", "This object cannot be deleted.", InfoboxType.Error, InfoboxButtons.OK);
}
}
} else {
- wm.StartInfobox95("Windows Explorer", "This object cannot be deleted.", Properties.Resources.Win95Error);
+ wm.StartInfobox95("Windows Explorer", "This object cannot be deleted.", InfoboxType.Error, InfoboxButtons.OK);
}
}
}