diff options
| author | Alex-TIMEHACK <[email protected]> | 2017-07-23 16:22:32 +0100 |
|---|---|---|
| committer | Alex-TIMEHACK <[email protected]> | 2017-07-23 16:22:32 +0100 |
| commit | 110089e0d7fcbc454dc55c0619ec4ccebc1a7e85 (patch) | |
| tree | 96f88795cdc73417b49abe1f77bce94b6731005b /TimeHACK.Main/OS/Win95/Win95.cs | |
| parent | c3ad5be7444664be6a1f7ba023067eb32cb5d231 (diff) | |
| download | histacom2-110089e0d7fcbc454dc55c0619ec4ccebc1a7e85.tar.gz histacom2-110089e0d7fcbc454dc55c0619ec4ccebc1a7e85.tar.bz2 histacom2-110089e0d7fcbc454dc55c0619ec4ccebc1a7e85.zip | |
Realistic Desktop is finished!
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95.cs')
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95.cs | 40 |
1 files changed, 27 insertions, 13 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95.cs b/TimeHACK.Main/OS/Win95/Win95.cs index 7a2e9e1..d2f7507 100644 --- a/TimeHACK.Main/OS/Win95/Win95.cs +++ b/TimeHACK.Main/OS/Win95/Win95.cs @@ -259,7 +259,7 @@ namespace TimeHACK.OS.Win95 startmenu.Hide(); } - private void desktopicons_Click(object sender, EventArgs e) + private void desktopicons_DoubleClick(object sender, EventArgs e) { Point objDrawingPoint = desktopicons.PointToClient(Cursor.Position); ListViewItem objListViewItem; @@ -278,23 +278,37 @@ namespace TimeHACK.OS.Win95 ie.FormClosing += new FormClosingEventHandler(InternetExplorer4_Closing); startmenu.Hide(); } - else if (objListViewItem.Text == "Web Chat Setup") + else if (objListViewItem.Text == "My Computer") { - Win95Installer inst = new Win95Installer("Web Chat 1998"); - inst.InstallCompleted += (sendr, args) => WebChatToolStripMenuItem.Visible = true; - WinClassic app = wm.StartWin95(inst, "Web Chat Setup", null, true, true); - AddTaskBarItem(app, app.Tag.ToString(), "Web Chat Setup", null); + WinClassic app = wm.StartWin95(new Win95WindowsExplorer(), "Windows Explorer", Properties.Resources.WinClassicFileExplorer, true, true); + AddTaskBarItem(app, app.Tag.ToString(), "Windows Explorer", Properties.Resources.WinClassicFileExplorer); app.BringToFront(); startmenu.Hide(); } - else if (objListViewItem.Text == "FTP Client Setup") + else { - Win95Installer inst = new Win95Installer("FTP Client"); - inst.InstallCompleted += (sendr, args) => FTPClientToolStripMenuItem.Visible = true; - WinClassic app = wm.StartWin95(inst, "FTP Client Setup", null, true, true); - AddTaskBarItem(app, app.Tag.ToString(), "FTP Client Setup", null); - app.BringToFront(); - startmenu.Hide(); + // It is an actual file on the disk + + Win95WindowsExplorer we = new Win95WindowsExplorer(); + + // If it is a directory + + if (Directory.Exists(objListViewItem.Tag.ToString())) + { + we.CurrentDirectory = objListViewItem.Tag.ToString(); + + WinClassic app = wm.StartWin95(we, "Windows Explorer", Properties.Resources.WinClassicFileExplorer, true, true); + AddTaskBarItem(app, app.Tag.ToString(), "Windows Explorer", Properties.Resources.WinClassicFileExplorer); + app.BringToFront(); + startmenu.Hide(); + } + else + { + // Just open the file... + + we.OpenFile(objListViewItem.Tag.ToString()); + } + } } } |
