aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/OS/Win95/Win95.cs
diff options
context:
space:
mode:
authorjtsshieh <[email protected]>2017-07-05 12:54:34 -0400
committerjtsshieh <[email protected]>2017-07-05 12:54:34 -0400
commit26f2a5fb9e4c19ce4d2feac2565eac5319f0f9d8 (patch)
tree22274ae6ef9fe35b1fd2a683dc21ad7647094d6b /TimeHACK.Main/OS/Win95/Win95.cs
parent1babfac033b8add0dee2a8c9a4b34fd6f90ac222 (diff)
downloadhistacom2-26f2a5fb9e4c19ce4d2feac2565eac5319f0f9d8.tar.gz
histacom2-26f2a5fb9e4c19ce4d2feac2565eac5319f0f9d8.tar.bz2
histacom2-26f2a5fb9e4c19ce4d2feac2565eac5319f0f9d8.zip
Welcome Page
Working welcome page for winn95 except I cannot get the system to save the settings so it will appear every single time!
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95.cs')
-rw-r--r--TimeHACK.Main/OS/Win95/Win95.cs18
1 files changed, 17 insertions, 1 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95.cs b/TimeHACK.Main/OS/Win95/Win95.cs
index 3bd63b5..6a4addf 100644
--- a/TimeHACK.Main/OS/Win95/Win95.cs
+++ b/TimeHACK.Main/OS/Win95/Win95.cs
@@ -10,7 +10,7 @@ using TimeHACK.Engine.Template.Taskbars;
using TimeHACK.OS.Win95.Win95Apps;
using TimeHACK.WinClassicForms;
using TimeHACK.OS.Win95.Win95Apps.Story;
-
+using static TimeHACK.Engine.SaveSystem;
namespace TimeHACK.OS.Win95
{
@@ -96,6 +96,22 @@ namespace TimeHACK.OS.Win95
// Bring to this the front
this.BringToFront();
+
+ //Check if it is the first time
+ if (CurrentSave.FTime95 == false)
+ {
+ CurrentSave.FTime95 = true;
+ WinClassicWelcome welcome = new WinClassicWelcome();
+ WinClassic app = wm.StartWin95(welcome, "Welcome", null, false, false);
+ AddTaskBarItem(app, app.Tag.ToString(), "Welcome", null);
+
+ nonimportantapps.Add(app);
+ nonimportantapps[nonimportantapps.Count - 1].BringToFront();
+ nonimportantapps[nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(NonImportantApp_Closing);
+
+ app.BringToFront();
+
+ }
}
private void fontLoad()