aboutsummaryrefslogtreecommitdiff
path: root/Histacom2/OS/Win98/Win98.cs
diff options
context:
space:
mode:
authorlempamo <[email protected]>2017-10-23 21:14:20 -0500
committerGitHub <[email protected]>2017-10-23 21:14:20 -0500
commitaff052b475abc5d4035369a85fa471f62cad021b (patch)
tree70ccdd91154536e8f50828569f9faa3d61c70748 /Histacom2/OS/Win98/Win98.cs
parent680e4930a893fc144a169d267878eb9407dd656f (diff)
parentf6da3b0cfd6c63c5d1d07df8b7e41f499de645fa (diff)
downloadhistacom2-aff052b475abc5d4035369a85fa471f62cad021b.tar.gz
histacom2-aff052b475abc5d4035369a85fa471f62cad021b.tar.bz2
histacom2-aff052b475abc5d4035369a85fa471f62cad021b.zip
Merge pull request #167 from jtsshieh/master
Added Welcome Screen and fixed another theme bug
Diffstat (limited to 'Histacom2/OS/Win98/Win98.cs')
-rw-r--r--Histacom2/OS/Win98/Win98.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/Histacom2/OS/Win98/Win98.cs b/Histacom2/OS/Win98/Win98.cs
index 742b19a..e10904e 100644
--- a/Histacom2/OS/Win98/Win98.cs
+++ b/Histacom2/OS/Win98/Win98.cs
@@ -23,6 +23,7 @@ namespace Histacom2.OS.Win98
public List<WinClassic> nonimportantapps = new List<WinClassic>();
public WebChat1999 webchat;
public WinClassic ie;
+ public WinClassic welcome;
public TaskBarController tb = new TaskBarController();
@@ -114,6 +115,22 @@ namespace Histacom2.OS.Win98
// Bring to this the front
this.BringToFront();
+ //Check if it is the first time
+ if (CurrentSave.FTime98 == false)
+ {
+ CurrentSave.FTime98 = true;
+ SaveGame();
+ welcome = wm.Init(new Win98Welcome(), "Welcome", null, false, false, resize: false);
+ AddTaskBarItem(welcome, welcome.Tag.ToString(), "Welcome", null);
+
+ nonimportantapps.Add(welcome);
+ nonimportantapps[nonimportantapps.Count - 1].BringToFront();
+ nonimportantapps[nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(NonImportantApp_Closing);
+
+ welcome.BringToFront();
+ welcome.Activate();
+ }
+
// Update the desktop Icons!
DesktopController.RefreshDesktopIcons(new ListViewItem[] { new System.Windows.Forms.ListViewItem("My Computer", 0),