diff options
| author | lempamo <[email protected]> | 2017-10-15 11:40:01 -0400 |
|---|---|---|
| committer | lempamo <[email protected]> | 2017-10-15 11:40:01 -0400 |
| commit | 7ce95f837d4318397e6749250e53fe7a85fe8f77 (patch) | |
| tree | bb91c6a3acc513238456d93c3941c0a6f5791833 /Histacom2/OS/Win98/Win98.cs | |
| parent | 718fc7c680c17508b9d97cc92e8a3632cb999bb7 (diff) | |
| download | histacom2-7ce95f837d4318397e6749250e53fe7a85fe8f77.tar.gz histacom2-7ce95f837d4318397e6749250e53fe7a85fe8f77.tar.bz2 histacom2-7ce95f837d4318397e6749250e53fe7a85fe8f77.zip | |
hack3 made
Diffstat (limited to 'Histacom2/OS/Win98/Win98.cs')
| -rw-r--r-- | Histacom2/OS/Win98/Win98.cs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Histacom2/OS/Win98/Win98.cs b/Histacom2/OS/Win98/Win98.cs index 3365def..3795c8b 100644 --- a/Histacom2/OS/Win98/Win98.cs +++ b/Histacom2/OS/Win98/Win98.cs @@ -21,7 +21,7 @@ namespace Histacom2.OS.Win98 public WindowManager wm = new WindowManager(); public List<WinClassic> nonimportantapps = new List<WinClassic>(); - public WinClassic webchat; + public WebChat1999 webchat; public WinClassic ie; public TaskBarController tb = new TaskBarController(); @@ -331,13 +331,16 @@ namespace Histacom2.OS.Win98 } private void WebChatToolStripMenuItem_Click(object sender, EventArgs e) { - WebChat1999 wc = new WebChat1999(); - WinClassic app = wm.Init(wc, "Web Chat 1999", null, true, true); + if (webchat != null) return; + webchat = new WebChat1999(); + WinClassic app = wm.Init(webchat, "Web Chat 1999", null, true, true); AddTaskBarItem(app, app.Tag.ToString(), "Web Chat 1999", null); app.BringToFront(); startmenu.Hide(); + + app.FormClosing += (s, fe) => webchat = null; } public void NonImportantApp_Closing(object sender, FormClosingEventArgs e) { @@ -456,6 +459,7 @@ namespace Histacom2.OS.Win98 private void TimeDistorterToolStripMenuItem_Click(object sender, EventArgs e) { + if (distort != null) return; distort = new WinClassicTimeDistorter2(); WinClassic app = wm.Init(distort, "Time Distorter", null, false, false, false); AddTaskBarItem(app, app.Tag.ToString(), "Time Distorter", null); |
