diff options
| author | Alex-TIMEHACK <[email protected]> | 2017-05-24 21:46:33 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-05-24 21:46:33 +0100 |
| commit | 5648792fa6d1e0c51a2720aab091524d2a6ebf8d (patch) | |
| tree | a2053e6184289ec00133dc075c3a32fdd4f0fe01 /TimeHACK.Main/OS/Win95/Win95.cs | |
| parent | 5bd41f103e823773318e647a1bf66daae970c7d2 (diff) | |
| parent | ac576c05905b55a5059dab672c1882f01fc074d0 (diff) | |
| download | histacom2-5648792fa6d1e0c51a2720aab091524d2a6ebf8d.tar.gz histacom2-5648792fa6d1e0c51a2720aab091524d2a6ebf8d.tar.bz2 histacom2-5648792fa6d1e0c51a2720aab091524d2a6ebf8d.zip | |
Merge pull request #76 from Alex-TIMEHACK/master
NOT FINISHED File Explorer!
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95.cs')
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95.cs | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95.cs b/TimeHACK.Main/OS/Win95/Win95.cs index eeaa9f2..6d7b5f3 100644 --- a/TimeHACK.Main/OS/Win95/Win95.cs +++ b/TimeHACK.Main/OS/Win95/Win95.cs @@ -262,7 +262,7 @@ namespace TimeHACK.OS.Win95 app.BringToFront(); startmenu.Hide(); } - private void NonImportantApp_Closing(object sender, FormClosingEventArgs e) + public void NonImportantApp_Closing(object sender, FormClosingEventArgs e) { nonimportantapps.Remove((WinClassic)sender); } @@ -313,8 +313,24 @@ namespace TimeHACK.OS.Win95 private void AddressBookToolStripMenuItem_Click(object sender, EventArgs e) { WinClassicAddressBook ab = new WinClassicAddressBook(); - WinClassic app = wm.startWin95(ab, "Address Book", Properties.Resources.Win95IconWordpad, true, true); - AddTaskBarItem(app, app.Tag.ToString(), "Address Book", Properties.Resources.Win95IconWordpad); + WinClassic app = wm.startWin95(ab, "Address Book", Properties.Resources.WinClassicAddressBook, true, true); + AddTaskBarItem(app, app.Tag.ToString(), "Address Book", Properties.Resources.WinClassicAddressBook); + + nonimportantapps.Add(app); + nonimportantapps[nonimportantapps.Count - 1].BringToFront(); + nonimportantapps[nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(NonImportantApp_Closing); + + app.BringToFront(); + startmenu.Hide(); + } + + private void WindowsExplorerToolStripMenuItem1_Click(object sender, EventArgs e) + { + FileDialogBoxManager.IsInOpenDialog = false; + FileDialogBoxManager.IsInSaveDialog = false; + WinClassicWindowsExplorer we = new WinClassicWindowsExplorer(); + WinClassic app = wm.startWin95(we, "Windows Explorer", Properties.Resources.WinClassicFileExplorer, true, true); + AddTaskBarItem(app, app.Tag.ToString(), "Windows Explorer", Properties.Resources.WinClassicFileExplorer); nonimportantapps.Add(app); nonimportantapps[nonimportantapps.Count - 1].BringToFront(); |
