From 62a2bc4706a331eaed2bcd7c08ffb88b4afe8b91 Mon Sep 17 00:00:00 2001 From: Alex-TIMEHACK Date: Sun, 23 Jul 2017 17:42:07 +0100 Subject: Finished the realistic desktop --- TimeHACK.Main/OS/Win95/Win95.Designer.cs | 167 +++----------------------- TimeHACK.Main/OS/Win95/Win95.cs | 99 +++++++++++++++- TimeHACK.Main/OS/Win95/Win95.resx | 68 +++++------ TimeHACK.Main/OS/Win98/Win98.Designer.cs | 198 +++++-------------------------- TimeHACK.Main/OS/Win98/Win98.cs | 162 +++++++++++++++++++++++-- TimeHACK.Main/OS/Win98/Win98.resx | 26 ++-- 6 files changed, 337 insertions(+), 383 deletions(-) (limited to 'TimeHACK.Main') diff --git a/TimeHACK.Main/OS/Win95/Win95.Designer.cs b/TimeHACK.Main/OS/Win95/Win95.Designer.cs index 8c991c7..bb813fb 100644 --- a/TimeHACK.Main/OS/Win95/Win95.Designer.cs +++ b/TimeHACK.Main/OS/Win95/Win95.Designer.cs @@ -104,25 +104,12 @@ namespace TimeHACK.OS.Win95 this.desktopImages = new System.Windows.Forms.ImageList(this.components); this.desktopicons = new System.Windows.Forms.ListView(); this.rightclickbackproperties = new System.Windows.Forms.ContextMenuStrip(this.components); - this.PropertiesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.ByNameToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.ByTypeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.BySizeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.AutoArrangeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.ByDateToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.LineUpIconsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.PasteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.PasteShortcutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.NewToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); this.FolderToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.ShortcutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.WaveSoundToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.TextDocumentToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.WordPadDocumentToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.BitmapImageToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.MicrosoftDataLinkToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.PropertiesToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); this.desktopupdate = new System.Windows.Forms.Timer(this.components); + this.deleteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.panel1.SuspendLayout(); this.taskbar.SuspendLayout(); this.clockPanel.SuspendLayout(); @@ -975,164 +962,61 @@ namespace TimeHACK.OS.Win95 // rightclickbackproperties // this.rightclickbackproperties.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.PropertiesToolStripMenuItem, - this.LineUpIconsToolStripMenuItem, - this.PasteToolStripMenuItem, - this.PasteShortcutToolStripMenuItem, this.NewToolStripMenuItem1, + this.deleteToolStripMenuItem, this.PropertiesToolStripMenuItem1}); this.rightclickbackproperties.Name = "ContextMenuStrip1"; this.rightclickbackproperties.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional; - this.rightclickbackproperties.Size = new System.Drawing.Size(151, 136); - // - // PropertiesToolStripMenuItem - // - this.PropertiesToolStripMenuItem.BackColor = System.Drawing.Color.Silver; - this.PropertiesToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.ByNameToolStripMenuItem, - this.ByTypeToolStripMenuItem, - this.BySizeToolStripMenuItem, - this.AutoArrangeToolStripMenuItem, - this.ByDateToolStripMenuItem}); - this.PropertiesToolStripMenuItem.Name = "PropertiesToolStripMenuItem"; - this.PropertiesToolStripMenuItem.Size = new System.Drawing.Size(150, 22); - this.PropertiesToolStripMenuItem.Text = "Arrange Icons"; - // - // ByNameToolStripMenuItem - // - this.ByNameToolStripMenuItem.BackColor = System.Drawing.Color.Silver; - this.ByNameToolStripMenuItem.Name = "ByNameToolStripMenuItem"; - this.ByNameToolStripMenuItem.Size = new System.Drawing.Size(145, 22); - this.ByNameToolStripMenuItem.Text = "by Name"; - // - // ByTypeToolStripMenuItem - // - this.ByTypeToolStripMenuItem.BackColor = System.Drawing.Color.Silver; - this.ByTypeToolStripMenuItem.Name = "ByTypeToolStripMenuItem"; - this.ByTypeToolStripMenuItem.Size = new System.Drawing.Size(145, 22); - this.ByTypeToolStripMenuItem.Text = "by Type"; - // - // BySizeToolStripMenuItem - // - this.BySizeToolStripMenuItem.BackColor = System.Drawing.Color.Silver; - this.BySizeToolStripMenuItem.Name = "BySizeToolStripMenuItem"; - this.BySizeToolStripMenuItem.Size = new System.Drawing.Size(145, 22); - this.BySizeToolStripMenuItem.Text = "by Size"; - // - // AutoArrangeToolStripMenuItem - // - this.AutoArrangeToolStripMenuItem.BackColor = System.Drawing.Color.Silver; - this.AutoArrangeToolStripMenuItem.Name = "AutoArrangeToolStripMenuItem"; - this.AutoArrangeToolStripMenuItem.Size = new System.Drawing.Size(145, 22); - this.AutoArrangeToolStripMenuItem.Text = "Auto Arrange"; - // - // ByDateToolStripMenuItem - // - this.ByDateToolStripMenuItem.BackColor = System.Drawing.Color.Silver; - this.ByDateToolStripMenuItem.Name = "ByDateToolStripMenuItem"; - this.ByDateToolStripMenuItem.Size = new System.Drawing.Size(145, 22); - this.ByDateToolStripMenuItem.Text = "by Date"; - // - // LineUpIconsToolStripMenuItem - // - this.LineUpIconsToolStripMenuItem.BackColor = System.Drawing.Color.Silver; - this.LineUpIconsToolStripMenuItem.Name = "LineUpIconsToolStripMenuItem"; - this.LineUpIconsToolStripMenuItem.Size = new System.Drawing.Size(150, 22); - this.LineUpIconsToolStripMenuItem.Text = "Line Up Icons"; - // - // PasteToolStripMenuItem - // - this.PasteToolStripMenuItem.BackColor = System.Drawing.Color.Silver; - this.PasteToolStripMenuItem.Name = "PasteToolStripMenuItem"; - this.PasteToolStripMenuItem.Size = new System.Drawing.Size(150, 22); - this.PasteToolStripMenuItem.Text = "Paste"; - // - // PasteShortcutToolStripMenuItem - // - this.PasteShortcutToolStripMenuItem.BackColor = System.Drawing.Color.Silver; - this.PasteShortcutToolStripMenuItem.Name = "PasteShortcutToolStripMenuItem"; - this.PasteShortcutToolStripMenuItem.Size = new System.Drawing.Size(150, 22); - this.PasteShortcutToolStripMenuItem.Text = "Paste Shortcut"; + this.rightclickbackproperties.Size = new System.Drawing.Size(128, 70); // // NewToolStripMenuItem1 // this.NewToolStripMenuItem1.BackColor = System.Drawing.Color.Silver; this.NewToolStripMenuItem1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.FolderToolStripMenuItem, - this.ShortcutToolStripMenuItem, - this.WaveSoundToolStripMenuItem, - this.TextDocumentToolStripMenuItem, - this.WordPadDocumentToolStripMenuItem, - this.BitmapImageToolStripMenuItem, - this.MicrosoftDataLinkToolStripMenuItem}); + this.TextDocumentToolStripMenuItem}); this.NewToolStripMenuItem1.Name = "NewToolStripMenuItem1"; - this.NewToolStripMenuItem1.Size = new System.Drawing.Size(150, 22); + this.NewToolStripMenuItem1.Size = new System.Drawing.Size(152, 22); this.NewToolStripMenuItem1.Text = "New"; // // FolderToolStripMenuItem // this.FolderToolStripMenuItem.BackColor = System.Drawing.Color.Silver; this.FolderToolStripMenuItem.Name = "FolderToolStripMenuItem"; - this.FolderToolStripMenuItem.Size = new System.Drawing.Size(182, 22); + this.FolderToolStripMenuItem.Size = new System.Drawing.Size(154, 22); this.FolderToolStripMenuItem.Text = "Folder"; this.FolderToolStripMenuItem.Click += new System.EventHandler(this.FolderToolStripMenuItem_Click); // - // ShortcutToolStripMenuItem - // - this.ShortcutToolStripMenuItem.BackColor = System.Drawing.Color.Silver; - this.ShortcutToolStripMenuItem.Name = "ShortcutToolStripMenuItem"; - this.ShortcutToolStripMenuItem.Size = new System.Drawing.Size(182, 22); - this.ShortcutToolStripMenuItem.Text = "Shortcut"; - // - // WaveSoundToolStripMenuItem - // - this.WaveSoundToolStripMenuItem.BackColor = System.Drawing.Color.Silver; - this.WaveSoundToolStripMenuItem.Name = "WaveSoundToolStripMenuItem"; - this.WaveSoundToolStripMenuItem.Size = new System.Drawing.Size(182, 22); - this.WaveSoundToolStripMenuItem.Text = "Wave Sound"; - // // TextDocumentToolStripMenuItem // this.TextDocumentToolStripMenuItem.BackColor = System.Drawing.Color.Silver; this.TextDocumentToolStripMenuItem.Name = "TextDocumentToolStripMenuItem"; - this.TextDocumentToolStripMenuItem.Size = new System.Drawing.Size(182, 22); + this.TextDocumentToolStripMenuItem.Size = new System.Drawing.Size(154, 22); this.TextDocumentToolStripMenuItem.Text = "Text Document"; - // - // WordPadDocumentToolStripMenuItem - // - this.WordPadDocumentToolStripMenuItem.BackColor = System.Drawing.Color.Silver; - this.WordPadDocumentToolStripMenuItem.Name = "WordPadDocumentToolStripMenuItem"; - this.WordPadDocumentToolStripMenuItem.Size = new System.Drawing.Size(182, 22); - this.WordPadDocumentToolStripMenuItem.Text = "WordPad Document"; - // - // BitmapImageToolStripMenuItem - // - this.BitmapImageToolStripMenuItem.BackColor = System.Drawing.Color.Silver; - this.BitmapImageToolStripMenuItem.Name = "BitmapImageToolStripMenuItem"; - this.BitmapImageToolStripMenuItem.Size = new System.Drawing.Size(182, 22); - this.BitmapImageToolStripMenuItem.Text = "Bitmap Image"; - // - // MicrosoftDataLinkToolStripMenuItem - // - this.MicrosoftDataLinkToolStripMenuItem.BackColor = System.Drawing.Color.Silver; - this.MicrosoftDataLinkToolStripMenuItem.Name = "MicrosoftDataLinkToolStripMenuItem"; - this.MicrosoftDataLinkToolStripMenuItem.Size = new System.Drawing.Size(182, 22); - this.MicrosoftDataLinkToolStripMenuItem.Text = "Microsoft Data Link"; + this.TextDocumentToolStripMenuItem.Click += new System.EventHandler(this.TextDocumentToolStripMenuItem_Click); // // PropertiesToolStripMenuItem1 // this.PropertiesToolStripMenuItem1.BackColor = System.Drawing.Color.Silver; this.PropertiesToolStripMenuItem1.Name = "PropertiesToolStripMenuItem1"; - this.PropertiesToolStripMenuItem1.Size = new System.Drawing.Size(150, 22); + this.PropertiesToolStripMenuItem1.Size = new System.Drawing.Size(152, 22); this.PropertiesToolStripMenuItem1.Text = "Properties"; this.PropertiesToolStripMenuItem1.Click += new System.EventHandler(this.PropertiesToolStripMenuItem1_Click); // // desktopupdate // this.desktopupdate.Enabled = true; - this.desktopupdate.Interval = 5000; + this.desktopupdate.Interval = 10000; this.desktopupdate.Tick += new System.EventHandler(this.desktopupdate_Tick); // + // deleteToolStripMenuItem + // + this.deleteToolStripMenuItem.BackColor = System.Drawing.Color.Silver; + this.deleteToolStripMenuItem.Name = "deleteToolStripMenuItem"; + this.deleteToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.deleteToolStripMenuItem.Text = "Delete"; + this.deleteToolStripMenuItem.Click += new System.EventHandler(this.deleteToolStripMenuItem_Click); + // // Windows95 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -1234,23 +1118,9 @@ namespace TimeHACK.OS.Win95 private System.Windows.Forms.ImageList desktopImages; internal System.Windows.Forms.ListView desktopicons; internal System.Windows.Forms.ContextMenuStrip rightclickbackproperties; - internal System.Windows.Forms.ToolStripMenuItem PropertiesToolStripMenuItem; - internal System.Windows.Forms.ToolStripMenuItem ByNameToolStripMenuItem; - internal System.Windows.Forms.ToolStripMenuItem ByTypeToolStripMenuItem; - internal System.Windows.Forms.ToolStripMenuItem BySizeToolStripMenuItem; - internal System.Windows.Forms.ToolStripMenuItem AutoArrangeToolStripMenuItem; - internal System.Windows.Forms.ToolStripMenuItem ByDateToolStripMenuItem; - internal System.Windows.Forms.ToolStripMenuItem LineUpIconsToolStripMenuItem; - internal System.Windows.Forms.ToolStripMenuItem PasteToolStripMenuItem; - internal System.Windows.Forms.ToolStripMenuItem PasteShortcutToolStripMenuItem; internal System.Windows.Forms.ToolStripMenuItem NewToolStripMenuItem1; internal System.Windows.Forms.ToolStripMenuItem FolderToolStripMenuItem; - internal System.Windows.Forms.ToolStripMenuItem ShortcutToolStripMenuItem; - internal System.Windows.Forms.ToolStripMenuItem WaveSoundToolStripMenuItem; internal System.Windows.Forms.ToolStripMenuItem TextDocumentToolStripMenuItem; - internal System.Windows.Forms.ToolStripMenuItem WordPadDocumentToolStripMenuItem; - internal System.Windows.Forms.ToolStripMenuItem BitmapImageToolStripMenuItem; - internal System.Windows.Forms.ToolStripMenuItem MicrosoftDataLinkToolStripMenuItem; internal System.Windows.Forms.ToolStripMenuItem PropertiesToolStripMenuItem1; internal System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Windows95)); private System.Windows.Forms.ToolStripMenuItem downloaderTestToolStripMenuItem; @@ -1260,5 +1130,6 @@ namespace TimeHACK.OS.Win95 internal System.Windows.Forms.ToolStripMenuItem FTPClientToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem iE4TestToolStripMenuItem; private System.Windows.Forms.Timer desktopupdate; + private System.Windows.Forms.ToolStripMenuItem deleteToolStripMenuItem; } } \ No newline at end of file diff --git a/TimeHACK.Main/OS/Win95/Win95.cs b/TimeHACK.Main/OS/Win95/Win95.cs index d2f7507..3649982 100644 --- a/TimeHACK.Main/OS/Win95/Win95.cs +++ b/TimeHACK.Main/OS/Win95/Win95.cs @@ -172,12 +172,6 @@ namespace TimeHACK.OS.Win95 #endregion //Region - // When add new folder is clicked - private void FolderToolStripMenuItem_Click(object sender, EventArgs e) - { - desktopicons.Items.Add("New Folder"); - } - // Give Year Code - NYI private void taskbartime_Click(object sender, EventArgs e) { @@ -195,6 +189,17 @@ namespace TimeHACK.OS.Win95 { if (e.Button == MouseButtons.Right) { + // Check if an item is selected and if so show the Delete option + + if (desktopicons.FocusedItem != null) + { + deleteToolStripMenuItem.Visible = true; + } else { + deleteToolStripMenuItem.Visible = false; + } + + desktopupdate_Tick(null, null); // Update the Desktop Icons + rightclickbackproperties.Show(); rightclickbackproperties.BringToFront(); rightclickbackproperties.Location = MousePosition; @@ -285,6 +290,25 @@ namespace TimeHACK.OS.Win95 app.BringToFront(); startmenu.Hide(); } + else if (objListViewItem.Text == "Network Neighborhood") + { + // Alex's TODO here + + } + else if (objListViewItem.Text == "Recycle Bin") + { + // Another thing you may need to digital poke Alex about doing. + + } + else if (objListViewItem.Text == "Set Up The Microsoft Network") { + wm.StartInfobox95("Microsoft Network", "The Microsoft Network is already set up!", Properties.Resources.Win95Info); + } else if (objListViewItem.Text == "Outlook Express") { + wm.StartInfobox95("Win32 Application", "That is not a valid Win32 Application.", Properties.Resources.Win95Error); + } + else if (objListViewItem.Text == "Inbox") + { + wm.StartInfobox95("Win32 Application", "That is not a valid Win32 Application.", Properties.Resources.Win95Error); + } else { // It is an actual file on the disk @@ -484,6 +508,69 @@ namespace TimeHACK.OS.Win95 new System.Windows.Forms.ListViewItem("Set Up The Microsoft Network", 4), new System.Windows.Forms.ListViewItem("Outlook Express", 6) }, ref desktopicons, Path.Combine(ProfileWindowsDirectory, "Desktop")); } + + // When add new folder is clicked + private void FolderToolStripMenuItem_Click(object sender, EventArgs e) + { + if (Directory.Exists(Path.Combine(ProfileWindowsDirectory, "Desktop", "New Folder"))) + { + wm.StartInfobox95("Windows Explorer", "A folder called New Folder already exists - please rename it.", Properties.Resources.Win95Error); + } + else + { + SaveDirectoryInfo(Path.Combine(ProfileWindowsDirectory, "Desktop", "New Folder"), false, "New folder", true); + desktopupdate_Tick(null, null); // Update the desktop Icons + } + } + + private void TextDocumentToolStripMenuItem_Click(object sender, EventArgs e) + { + if (File.Exists(Path.Combine(ProfileWindowsDirectory, "Desktop", "New Text Document.txt"))) + { + wm.StartInfobox95("Windows Explorer", "A folder called New Text Document already exists - please rename it.", Properties.Resources.Win95Error); + } + else + { + File.Create(Path.Combine(ProfileWindowsDirectory, "Desktop", "New Text Document.txt")); + desktopupdate_Tick(null, null); // Update the desktop Icons + } + } + + private void deleteToolStripMenuItem_Click(object sender, EventArgs e) + { + Point objDrawingPoint = desktopicons.PointToClient(Cursor.Position); + ListViewItem objListViewItem; + + if (objDrawingPoint != null) + { + objListViewItem = desktopicons.GetItemAt(objDrawingPoint.X, objDrawingPoint.Y); + if (objListViewItem != null) + { + if (objListViewItem.Tag != null) + { + if (Directory.Exists(objListViewItem.Tag.ToString())) + { + Directory.Delete(objListViewItem.Tag.ToString(), true); + desktopupdate_Tick(null, null); // Update the desktop Icons + } + else + { + if (File.Exists(objListViewItem.Tag.ToString())) + { + File.Delete(objListViewItem.Tag.ToString()); + desktopupdate_Tick(null, null); // Update the desktop Icons + } + else + { + wm.StartInfobox95("Windows Explorer", "This object cannot be deleted.", Properties.Resources.Win95Error); + } + } + } else { + wm.StartInfobox95("Windows Explorer", "This object cannot be deleted.", Properties.Resources.Win95Error); + } + } + } + } } public class MyRenderer : ToolStripProfessionalRenderer { diff --git a/TimeHACK.Main/OS/Win95/Win95.resx b/TimeHACK.Main/OS/Win95/Win95.resx index 68c45bc..0b0b527 100644 --- a/TimeHACK.Main/OS/Win95/Win95.resx +++ b/TimeHACK.Main/OS/Win95/Win95.resx @@ -377,53 +377,53 @@ AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAAc - jgAAAk1TRnQBSQFMAgEBDQEAAdABAQHQAQEBIAEAASABAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAGA + jgAAAk1TRnQBSQFMAgEBDQEAAdgBAQHYAQEBIAEAASABAAT/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M + AU0BTAH/AUwBTQFMAf8BPQE+AT0B/wMmAf8DRgGSAygBPAMHAQr/AMEAAzABTANEAZcDRAGXA0QBlwNE + AZcDRAGXA0QBlwNEAZcDRAGXA0QBlwNEAZcDRAGXA0QBlwMmATn/AP8A/wD/AP8A/wD/AP8A/wD/AP8A zgAB/wMAAf8DAAH/AwAB/wMAAf8DAAH/AwAB/x8AAf8DAAH/AwAB/wMAAf8DAAH/AwAB/wMAAf8DAAH/ AwAB/wMAAf8jAAH/AwAB/wMAAf8DAAH/AwAB/wMAAf8DAAH/HwAB/wMAAf8DAAH/AwAB/wMAAf8DAAH/ AwAB/wMAAf8DAAH/AwAB/yMAAf8DAAH/AwAB/wMAAf8DAAH/AwAB/wMAAf8fAAH/AwAB/wMAAf8DAAH/ @@ -987,7 +987,7 @@ - 398, 17 + 401, 8 580, 17 diff --git a/TimeHACK.Main/OS/Win98/Win98.Designer.cs b/TimeHACK.Main/OS/Win98/Win98.Designer.cs index 3762187..8a786ce 100644 --- a/TimeHACK.Main/OS/Win98/Win98.Designer.cs +++ b/TimeHACK.Main/OS/Win98/Win98.Designer.cs @@ -32,14 +32,6 @@ namespace TimeHACK.OS.Win98 { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Windows98)); - System.Windows.Forms.ListViewItem listViewItem1 = new System.Windows.Forms.ListViewItem("My Computer", 0); - System.Windows.Forms.ListViewItem listViewItem2 = new System.Windows.Forms.ListViewItem("Network Neighborhood", 5); - System.Windows.Forms.ListViewItem listViewItem3 = new System.Windows.Forms.ListViewItem("Inbox", 3); - System.Windows.Forms.ListViewItem listViewItem4 = new System.Windows.Forms.ListViewItem("Recycle Bin", 7); - System.Windows.Forms.ListViewItem listViewItem5 = new System.Windows.Forms.ListViewItem("Internet Explorer", 2); - System.Windows.Forms.ListViewItem listViewItem6 = new System.Windows.Forms.ListViewItem("Online Services", 1); - System.Windows.Forms.ListViewItem listViewItem7 = new System.Windows.Forms.ListViewItem("Set Up The Microsoft Network", 4); - System.Windows.Forms.ListViewItem listViewItem8 = new System.Windows.Forms.ListViewItem("Outlook Express", 6); this.panel1 = new System.Windows.Forms.Panel(); this.panel2 = new System.Windows.Forms.Panel(); this.taskbar = new System.Windows.Forms.Panel(); @@ -111,24 +103,12 @@ namespace TimeHACK.OS.Win98 this.desktopImages = new System.Windows.Forms.ImageList(this.components); this.desktopicons = new System.Windows.Forms.ListView(); this.rightclickbackproperties = new System.Windows.Forms.ContextMenuStrip(this.components); - this.PropertiesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.ByNameToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.ByTypeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.BySizeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.AutoArrangeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.ByDateToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.LineUpIconsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.PasteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.PasteShortcutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.NewToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); this.FolderToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.ShortcutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.WaveSoundToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.TextDocumentToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.WordPadDocumentToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.BitmapImageToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.MicrosoftDataLinkToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.PropertiesToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.desktopupdate = new System.Windows.Forms.Timer(this.components); + this.deleteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.panel1.SuspendLayout(); this.taskbar.SuspendLayout(); this.clockPanel.SuspendLayout(); @@ -745,7 +725,7 @@ namespace TimeHACK.OS.Win98 this.downloaderTestToolStripMenuItem.BackColor = System.Drawing.Color.Silver; this.downloaderTestToolStripMenuItem.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("downloaderTestToolStripMenuItem.BackgroundImage"))); this.downloaderTestToolStripMenuItem.Name = "downloaderTestToolStripMenuItem"; - this.downloaderTestToolStripMenuItem.Size = new System.Drawing.Size(186, 22); + this.downloaderTestToolStripMenuItem.Size = new System.Drawing.Size(159, 22); this.downloaderTestToolStripMenuItem.Text = "DownloaderTest"; this.downloaderTestToolStripMenuItem.Click += new System.EventHandler(this.downloaderTestToolStripMenuItem_Click); // @@ -754,7 +734,7 @@ namespace TimeHACK.OS.Win98 this.installerTestToolStripMenuItem.BackColor = System.Drawing.Color.Silver; this.installerTestToolStripMenuItem.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("installerTestToolStripMenuItem.BackgroundImage"))); this.installerTestToolStripMenuItem.Name = "installerTestToolStripMenuItem"; - this.installerTestToolStripMenuItem.Size = new System.Drawing.Size(186, 22); + this.installerTestToolStripMenuItem.Size = new System.Drawing.Size(159, 22); this.installerTestToolStripMenuItem.Text = "InstallerTest"; this.installerTestToolStripMenuItem.Click += new System.EventHandler(this.installerTestToolStripMenuItem_Click); // @@ -762,7 +742,7 @@ namespace TimeHACK.OS.Win98 // this.storyTest1ToolStripMenuItem.BackgroundImage = global::TimeHACK.Properties.Resources.sliversilver; this.storyTest1ToolStripMenuItem.Name = "storyTest1ToolStripMenuItem"; - this.storyTest1ToolStripMenuItem.Size = new System.Drawing.Size(186, 22); + this.storyTest1ToolStripMenuItem.Size = new System.Drawing.Size(159, 22); this.storyTest1ToolStripMenuItem.Text = "StoryTest1"; this.storyTest1ToolStripMenuItem.Click += new System.EventHandler(this.storyTest1ToolStripMenuItem_Click); // @@ -957,178 +937,72 @@ namespace TimeHACK.OS.Win98 this.desktopicons.BorderStyle = System.Windows.Forms.BorderStyle.None; this.desktopicons.Dock = System.Windows.Forms.DockStyle.Fill; this.desktopicons.ForeColor = System.Drawing.Color.White; - this.desktopicons.Items.AddRange(new System.Windows.Forms.ListViewItem[] { - listViewItem1, - listViewItem2, - listViewItem3, - listViewItem4, - listViewItem5, - listViewItem6, - listViewItem7, - listViewItem8}); this.desktopicons.LargeImageList = this.desktopImages; this.desktopicons.Location = new System.Drawing.Point(0, 0); this.desktopicons.Name = "desktopicons"; this.desktopicons.Size = new System.Drawing.Size(640, 480); this.desktopicons.TabIndex = 6; this.desktopicons.UseCompatibleStateImageBehavior = false; - this.desktopicons.DoubleClick += new System.EventHandler(this.desktopicons_Click); + this.desktopicons.DoubleClick += new System.EventHandler(this.desktopicons_DoubleClick); this.desktopicons.MouseDown += new System.Windows.Forms.MouseEventHandler(this.desktop_mousedown); // // rightclickbackproperties // this.rightclickbackproperties.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.PropertiesToolStripMenuItem, - this.LineUpIconsToolStripMenuItem, - this.PasteToolStripMenuItem, - this.PasteShortcutToolStripMenuItem, this.NewToolStripMenuItem1, + this.deleteToolStripMenuItem, this.PropertiesToolStripMenuItem1}); this.rightclickbackproperties.Name = "ContextMenuStrip1"; this.rightclickbackproperties.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional; - this.rightclickbackproperties.Size = new System.Drawing.Size(151, 136); - // - // PropertiesToolStripMenuItem - // - this.PropertiesToolStripMenuItem.BackColor = System.Drawing.Color.Silver; - this.PropertiesToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.ByNameToolStripMenuItem, - this.ByTypeToolStripMenuItem, - this.BySizeToolStripMenuItem, - this.AutoArrangeToolStripMenuItem, - this.ByDateToolStripMenuItem}); - this.PropertiesToolStripMenuItem.Name = "PropertiesToolStripMenuItem"; - this.PropertiesToolStripMenuItem.Size = new System.Drawing.Size(150, 22); - this.PropertiesToolStripMenuItem.Text = "Arrange Icons"; - // - // ByNameToolStripMenuItem - // - this.ByNameToolStripMenuItem.BackColor = System.Drawing.Color.Silver; - this.ByNameToolStripMenuItem.Name = "ByNameToolStripMenuItem"; - this.ByNameToolStripMenuItem.Size = new System.Drawing.Size(145, 22); - this.ByNameToolStripMenuItem.Text = "by Name"; - // - // ByTypeToolStripMenuItem - // - this.ByTypeToolStripMenuItem.BackColor = System.Drawing.Color.Silver; - this.ByTypeToolStripMenuItem.Name = "ByTypeToolStripMenuItem"; - this.ByTypeToolStripMenuItem.Size = new System.Drawing.Size(145, 22); - this.ByTypeToolStripMenuItem.Text = "by Type"; - // - // BySizeToolStripMenuItem - // - this.BySizeToolStripMenuItem.BackColor = System.Drawing.Color.Silver; - this.BySizeToolStripMenuItem.Name = "BySizeToolStripMenuItem"; - this.BySizeToolStripMenuItem.Size = new System.Drawing.Size(145, 22); - this.BySizeToolStripMenuItem.Text = "by Size"; - // - // AutoArrangeToolStripMenuItem - // - this.AutoArrangeToolStripMenuItem.BackColor = System.Drawing.Color.Silver; - this.AutoArrangeToolStripMenuItem.Name = "AutoArrangeToolStripMenuItem"; - this.AutoArrangeToolStripMenuItem.Size = new System.Drawing.Size(145, 22); - this.AutoArrangeToolStripMenuItem.Text = "Auto Arrange"; - // - // ByDateToolStripMenuItem - // - this.ByDateToolStripMenuItem.BackColor = System.Drawing.Color.Silver; - this.ByDateToolStripMenuItem.Name = "ByDateToolStripMenuItem"; - this.ByDateToolStripMenuItem.Size = new System.Drawing.Size(145, 22); - this.ByDateToolStripMenuItem.Text = "by Date"; - // - // LineUpIconsToolStripMenuItem - // - this.LineUpIconsToolStripMenuItem.BackColor = System.Drawing.Color.Silver; - this.LineUpIconsToolStripMenuItem.Name = "LineUpIconsToolStripMenuItem"; - this.LineUpIconsToolStripMenuItem.Size = new System.Drawing.Size(150, 22); - this.LineUpIconsToolStripMenuItem.Text = "Line Up Icons"; - // - // PasteToolStripMenuItem - // - this.PasteToolStripMenuItem.BackColor = System.Drawing.Color.Silver; - this.PasteToolStripMenuItem.Name = "PasteToolStripMenuItem"; - this.PasteToolStripMenuItem.Size = new System.Drawing.Size(150, 22); - this.PasteToolStripMenuItem.Text = "Paste"; - // - // PasteShortcutToolStripMenuItem - // - this.PasteShortcutToolStripMenuItem.BackColor = System.Drawing.Color.Silver; - this.PasteShortcutToolStripMenuItem.Name = "PasteShortcutToolStripMenuItem"; - this.PasteShortcutToolStripMenuItem.Size = new System.Drawing.Size(150, 22); - this.PasteShortcutToolStripMenuItem.Text = "Paste Shortcut"; + this.rightclickbackproperties.Size = new System.Drawing.Size(153, 92); // // NewToolStripMenuItem1 // this.NewToolStripMenuItem1.BackColor = System.Drawing.Color.Silver; this.NewToolStripMenuItem1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.FolderToolStripMenuItem, - this.ShortcutToolStripMenuItem, - this.WaveSoundToolStripMenuItem, - this.TextDocumentToolStripMenuItem, - this.WordPadDocumentToolStripMenuItem, - this.BitmapImageToolStripMenuItem, - this.MicrosoftDataLinkToolStripMenuItem}); + this.TextDocumentToolStripMenuItem}); this.NewToolStripMenuItem1.Name = "NewToolStripMenuItem1"; - this.NewToolStripMenuItem1.Size = new System.Drawing.Size(150, 22); + this.NewToolStripMenuItem1.Size = new System.Drawing.Size(152, 22); this.NewToolStripMenuItem1.Text = "New"; // // FolderToolStripMenuItem // this.FolderToolStripMenuItem.BackColor = System.Drawing.Color.Silver; this.FolderToolStripMenuItem.Name = "FolderToolStripMenuItem"; - this.FolderToolStripMenuItem.Size = new System.Drawing.Size(182, 22); + this.FolderToolStripMenuItem.Size = new System.Drawing.Size(154, 22); this.FolderToolStripMenuItem.Text = "Folder"; this.FolderToolStripMenuItem.Click += new System.EventHandler(this.FolderToolStripMenuItem_Click); // - // ShortcutToolStripMenuItem - // - this.ShortcutToolStripMenuItem.BackColor = System.Drawing.Color.Silver; - this.ShortcutToolStripMenuItem.Name = "ShortcutToolStripMenuItem"; - this.ShortcutToolStripMenuItem.Size = new System.Drawing.Size(182, 22); - this.ShortcutToolStripMenuItem.Text = "Shortcut"; - // - // WaveSoundToolStripMenuItem - // - this.WaveSoundToolStripMenuItem.BackColor = System.Drawing.Color.Silver; - this.WaveSoundToolStripMenuItem.Name = "WaveSoundToolStripMenuItem"; - this.WaveSoundToolStripMenuItem.Size = new System.Drawing.Size(182, 22); - this.WaveSoundToolStripMenuItem.Text = "Wave Sound"; - // // TextDocumentToolStripMenuItem // this.TextDocumentToolStripMenuItem.BackColor = System.Drawing.Color.Silver; this.TextDocumentToolStripMenuItem.Name = "TextDocumentToolStripMenuItem"; - this.TextDocumentToolStripMenuItem.Size = new System.Drawing.Size(182, 22); + this.TextDocumentToolStripMenuItem.Size = new System.Drawing.Size(154, 22); this.TextDocumentToolStripMenuItem.Text = "Text Document"; - // - // WordPadDocumentToolStripMenuItem - // - this.WordPadDocumentToolStripMenuItem.BackColor = System.Drawing.Color.Silver; - this.WordPadDocumentToolStripMenuItem.Name = "WordPadDocumentToolStripMenuItem"; - this.WordPadDocumentToolStripMenuItem.Size = new System.Drawing.Size(182, 22); - this.WordPadDocumentToolStripMenuItem.Text = "WordPad Document"; - // - // BitmapImageToolStripMenuItem - // - this.BitmapImageToolStripMenuItem.BackColor = System.Drawing.Color.Silver; - this.BitmapImageToolStripMenuItem.Name = "BitmapImageToolStripMenuItem"; - this.BitmapImageToolStripMenuItem.Size = new System.Drawing.Size(182, 22); - this.BitmapImageToolStripMenuItem.Text = "Bitmap Image"; - // - // MicrosoftDataLinkToolStripMenuItem - // - this.MicrosoftDataLinkToolStripMenuItem.BackColor = System.Drawing.Color.Silver; - this.MicrosoftDataLinkToolStripMenuItem.Name = "MicrosoftDataLinkToolStripMenuItem"; - this.MicrosoftDataLinkToolStripMenuItem.Size = new System.Drawing.Size(182, 22); - this.MicrosoftDataLinkToolStripMenuItem.Text = "Microsoft Data Link"; + this.TextDocumentToolStripMenuItem.Click += new System.EventHandler(this.TextDocumentToolStripMenuItem_Click); // // PropertiesToolStripMenuItem1 // this.PropertiesToolStripMenuItem1.BackColor = System.Drawing.Color.Silver; this.PropertiesToolStripMenuItem1.Name = "PropertiesToolStripMenuItem1"; - this.PropertiesToolStripMenuItem1.Size = new System.Drawing.Size(150, 22); + this.PropertiesToolStripMenuItem1.Size = new System.Drawing.Size(152, 22); this.PropertiesToolStripMenuItem1.Text = "Properties"; // + // desktopupdate + // + this.desktopupdate.Enabled = true; + this.desktopupdate.Interval = 5000; + this.desktopupdate.Tick += new System.EventHandler(this.desktopupdate_Tick); + // + // deleteToolStripMenuItem + // + this.deleteToolStripMenuItem.BackColor = System.Drawing.Color.Silver; + this.deleteToolStripMenuItem.Name = "deleteToolStripMenuItem"; + this.deleteToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.deleteToolStripMenuItem.Text = "Delete"; + this.deleteToolStripMenuItem.Click += new System.EventHandler(this.deleteToolStripMenuItem_Click); + // // Windows98 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -1231,28 +1105,16 @@ namespace TimeHACK.OS.Win98 private System.Windows.Forms.ImageList desktopImages; internal System.Windows.Forms.ListView desktopicons; internal System.Windows.Forms.ContextMenuStrip rightclickbackproperties; - internal System.Windows.Forms.ToolStripMenuItem PropertiesToolStripMenuItem; - internal System.Windows.Forms.ToolStripMenuItem ByNameToolStripMenuItem; - internal System.Windows.Forms.ToolStripMenuItem ByTypeToolStripMenuItem; - internal System.Windows.Forms.ToolStripMenuItem BySizeToolStripMenuItem; - internal System.Windows.Forms.ToolStripMenuItem AutoArrangeToolStripMenuItem; - internal System.Windows.Forms.ToolStripMenuItem ByDateToolStripMenuItem; - internal System.Windows.Forms.ToolStripMenuItem LineUpIconsToolStripMenuItem; - internal System.Windows.Forms.ToolStripMenuItem PasteToolStripMenuItem; - internal System.Windows.Forms.ToolStripMenuItem PasteShortcutToolStripMenuItem; internal System.Windows.Forms.ToolStripMenuItem NewToolStripMenuItem1; internal System.Windows.Forms.ToolStripMenuItem FolderToolStripMenuItem; - internal System.Windows.Forms.ToolStripMenuItem ShortcutToolStripMenuItem; - internal System.Windows.Forms.ToolStripMenuItem WaveSoundToolStripMenuItem; internal System.Windows.Forms.ToolStripMenuItem TextDocumentToolStripMenuItem; - internal System.Windows.Forms.ToolStripMenuItem WordPadDocumentToolStripMenuItem; - internal System.Windows.Forms.ToolStripMenuItem BitmapImageToolStripMenuItem; - internal System.Windows.Forms.ToolStripMenuItem MicrosoftDataLinkToolStripMenuItem; internal System.Windows.Forms.ToolStripMenuItem PropertiesToolStripMenuItem1; internal System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Windows95)); private System.Windows.Forms.ToolStripMenuItem downloaderTestToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem installerTestToolStripMenuItem; private System.Windows.Forms.Panel taskbarItems; private System.Windows.Forms.ToolStripMenuItem storyTest1ToolStripMenuItem; + private System.Windows.Forms.Timer desktopupdate; + private System.Windows.Forms.ToolStripMenuItem deleteToolStripMenuItem; } } \ No newline at end of file diff --git a/TimeHACK.Main/OS/Win98/Win98.cs b/TimeHACK.Main/OS/Win98/Win98.cs index 2fe4e3c..73702a5 100644 --- a/TimeHACK.Main/OS/Win98/Win98.cs +++ b/TimeHACK.Main/OS/Win98/Win98.cs @@ -110,6 +110,16 @@ namespace TimeHACK.OS.Win98 // Bring to this the front this.BringToFront(); + // Update the desktop Icons! + + DesktopController.RefreshDesktopIcons(new ListViewItem[] { new System.Windows.Forms.ListViewItem("My Computer", 0), + new System.Windows.Forms.ListViewItem("Network Neighborhood", 5), + new System.Windows.Forms.ListViewItem("Inbox", 3), + new System.Windows.Forms.ListViewItem("Recycle Bin", 7), + new System.Windows.Forms.ListViewItem("Internet Explorer", 2), + new System.Windows.Forms.ListViewItem("Online Services", 1), + new System.Windows.Forms.ListViewItem("Set Up The Microsoft Network", 4), + new System.Windows.Forms.ListViewItem("Outlook Express", 6) }, ref desktopicons, Path.Combine(ProfileWindowsDirectory, "Desktop")); } private void fontLoad() @@ -145,12 +155,6 @@ namespace TimeHACK.OS.Win98 #endregion //Region - // When add new folder is clicked - private void FolderToolStripMenuItem_Click(object sender, EventArgs e) - { - desktopicons.Items.Add("New Folder"); - } - // Give Year Code - NYI private void taskbartime_Click(object sender, EventArgs e) { @@ -168,6 +172,19 @@ namespace TimeHACK.OS.Win98 { if (e.Button == MouseButtons.Right) { + // Check if an item is selected and if so show the Delete option + + if (desktopicons.FocusedItem != null) + { + deleteToolStripMenuItem.Visible = true; + } + else + { + deleteToolStripMenuItem.Visible = false; + } + + desktopupdate_Tick(null, null); // Update the Desktop Icons + rightclickbackproperties.Show(); rightclickbackproperties.BringToFront(); rightclickbackproperties.Location = MousePosition; @@ -232,7 +249,7 @@ namespace TimeHACK.OS.Win98 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; @@ -251,15 +268,60 @@ namespace TimeHACK.OS.Win98 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 == "Network Neighborhood") + { + // Alex's TODO here + + } + else if (objListViewItem.Text == "Recycle Bin") + { + // Another thing you may need to digital poke Alex about doing. + + } + else if (objListViewItem.Text == "Set Up The Microsoft Network") + { + wm.StartInfobox95("Microsoft Network", "The Microsoft Network is already set up!", Properties.Resources.Win95Info); + } + else if (objListViewItem.Text == "Outlook Express") + { + wm.StartInfobox95("Win32 Application", "That is not a valid Win32 Application.", Properties.Resources.Win95Error); + } + else if (objListViewItem.Text == "Inbox") + { + wm.StartInfobox95("Win32 Application", "That is not a valid Win32 Application.", Properties.Resources.Win95Error); + } + else + { + // 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()); + } + + } } } } @@ -433,6 +495,82 @@ namespace TimeHACK.OS.Win98 app.BringToFront(); startmenu.Hide(); } + + private void desktopupdate_Tick(object sender, EventArgs e) + { + DesktopController.RefreshDesktopIcons(new ListViewItem[] { new System.Windows.Forms.ListViewItem("My Computer", 0), + new System.Windows.Forms.ListViewItem("Network Neighborhood", 5), + new System.Windows.Forms.ListViewItem("Inbox", 3), + new System.Windows.Forms.ListViewItem("Recycle Bin", 7), + new System.Windows.Forms.ListViewItem("Internet Explorer", 2), + new System.Windows.Forms.ListViewItem("Online Services", 1), + new System.Windows.Forms.ListViewItem("Set Up The Microsoft Network", 4), + new System.Windows.Forms.ListViewItem("Outlook Express", 6) }, ref desktopicons, Path.Combine(ProfileWindowsDirectory, "Desktop")); + } + + private void FolderToolStripMenuItem_Click(object sender, EventArgs e) + { + if (Directory.Exists(Path.Combine(ProfileWindowsDirectory, "Desktop", "New Folder"))) + { + wm.StartAboutBox95("Windows Explorer", "A folder called New Folder already exists - please rename it.", Properties.Resources.Win95Error); + } + else + { + SaveDirectoryInfo(Path.Combine(ProfileWindowsDirectory, "Desktop", "New Folder"), false, "New folder", true); + } + } + + private void TextDocumentToolStripMenuItem_Click(object sender, EventArgs e) + { + if (File.Exists(Path.Combine(ProfileWindowsDirectory, "Desktop", "New Text Document.txt"))) + { + wm.StartAboutBox95("Windows Explorer", "A folder called New Text Document already exists - please rename it.", Properties.Resources.Win95Error); + } + else + { + File.Create(Path.Combine(ProfileWindowsDirectory, "Desktop", "New Text Document.txt")); + } + + desktopupdate_Tick(null, null); // Update the Desktop Icons + } + + private void deleteToolStripMenuItem_Click(object sender, EventArgs e) + { + Point objDrawingPoint = desktopicons.PointToClient(Cursor.Position); + ListViewItem objListViewItem; + + if (objDrawingPoint != null) + { + objListViewItem = desktopicons.GetItemAt(objDrawingPoint.X, objDrawingPoint.Y); + if (objListViewItem != null) + { + if (objListViewItem.Tag != null) + { + if (Directory.Exists(objListViewItem.Tag.ToString())) + { + Directory.Delete(objListViewItem.Tag.ToString(), true); + desktopupdate_Tick(null, null); // Update the desktop Icons + } + else + { + if (File.Exists(objListViewItem.Tag.ToString())) + { + File.Delete(objListViewItem.Tag.ToString()); + desktopupdate_Tick(null, null); // Update the desktop Icons + } + else + { + wm.StartInfobox95("Windows Explorer", "This object cannot be deleted.", Properties.Resources.Win95Error); + } + } + } + else + { + wm.StartInfobox95("Windows Explorer", "This object cannot be deleted.", Properties.Resources.Win95Error); + } + } + } + } } public class MyRenderer : ToolStripProfessionalRenderer { diff --git a/TimeHACK.Main/OS/Win98/Win98.resx b/TimeHACK.Main/OS/Win98/Win98.resx index 0c36c4f..f1a458f 100644 --- a/TimeHACK.Main/OS/Win98/Win98.resx +++ b/TimeHACK.Main/OS/Win98/Win98.resx @@ -121,6 +121,13 @@ 17, 17 + + + iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO + wQAADsEBuJFr7QAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xMzQDW3oAAAAMSURBVBhXYzhw + 4AAABIQCQUtXaBsAAAAASUVORK5CYII= + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAALRJREFUOE+N @@ -299,13 +306,6 @@ wwAADsMBx2+oZAAAAJJJREFUOE+tkYEOgCAIRP10/tzk4FISZ7ZuuzDwnq4KJSL1aR/txc21llBfQVbh EZJZZ5C+nEoEcIN0QDyxLVGzm6WAsMYTvRSSAqaw2jRBloApbJUBhLVub4ABqwMY1poCuEYzhPWjRkgK 6EP7A+obqOc2EzIBeELmtqNFDECI9R3gYmPhCPH+qX6HfAJAQ7iUCwlxft5LSoDNAAAAAElFTkSuQmCC - - - - - iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wQAADsEBuJFr7QAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xMzQDW3oAAAAMSURBVBhXYzhw - 4AAABIQCQUtXaBsAAAAASUVORK5CYII= @@ -341,13 +341,6 @@ iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO wQAADsEBuJFr7QAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xMzQDW3oAAAAMSURBVBhXYzhw 4AAABIQCQUtXaBsAAAAASUVORK5CYII= - - - - - iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - wQAADsEBuJFr7QAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xMzQDW3oAAAAMSURBVBhXYzhw - 4AAABIQCQUtXaBsAAAAASUVORK5CYII= @@ -389,7 +382,7 @@ AAEAAAD/////AQ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