Merge pull request #136 from Alex-TIMEHACK/master

Realistic Desktop
This commit is contained in:
Jason 2017-07-23 20:35:08 +02:00 committed by GitHub
commit a852b2c7f2
18 changed files with 1075 additions and 1159 deletions

View file

@ -1,7 +1,7 @@
<a href="https://ci.appveyor.com/project/timehack/timehack"><img src="https://ci.appveyor.com/api/projects/status/8x34p8b0i2idblgd?svg=true" style="border: 0;" alt="AppVeyor Badge"></a> <a href="https://ci.appveyor.com/project/timehack/timehack"><img src="https://ci.appveyor.com/api/projects/status/8x34p8b0i2idblgd?svg=true" style="border: 0;" alt="AppVeyor Badge"></a>
[![Discord](https://discordapp.com/api/guilds/234414439330349056/widget.png?style=shield)](https://discord.gg/FZgQMDe) [![Discord](https://discordapp.com/api/guilds/234414439330349056/widget.png?style=shield)](https://discord.gg/ffuXR9k)
# TimeHACK # TimeHACK
## The remake of the original hacking simulator! ## The remake of the original hacking simulator!

View file

@ -0,0 +1,62 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
using Newtonsoft.Json;
namespace TimeHACK.Engine
{
public static class DesktopController
{
public static string ReadDataFile(string reqDirectory, bool returnYesIfProtected = false)
{
string Val = "";
string directoryFileInfo;
directoryFileInfo = File.ReadAllText(Path.Combine(reqDirectory, "_data.info"));
FileSystemFolderInfo toRead = new FileSystemFolderInfo();
toRead = JsonConvert.DeserializeObject<FileSystemFolderInfo>(directoryFileInfo);
if (returnYesIfProtected == true)
{
if (toRead.Isprotected == true)
{
return "yes";
}
}
else
{
return toRead.label;
}
return Val;
}
public static void RefreshDesktopIcons(ListViewItem[] baseIcons, ref ListView theView, string theDirectory)
{
theView.Items.Clear(); // This resets it to it's default
theView.Items.AddRange(baseIcons);
foreach (string dir in Directory.GetDirectories(theDirectory))
{
string label = ReadDataFile(dir);
theView.Items.Add(label ?? Path.GetFileName(dir), 1);
theView.FindItemWithText(Path.GetFileName(dir)).Tag = dir;
}
foreach (string dir in Directory.GetFiles(theDirectory))
{
if (Path.GetFileName(dir) != "_data.info")
{
int appIcon = 12;
if (new FileInfo(dir).Extension == ".exe") appIcon = 8;
theView.Items.Add(Path.GetFileName(dir), appIcon);
theView.FindItemWithText(Path.GetFileName(dir)).Tag = dir;
}
}
}
}
}

View file

@ -86,7 +86,7 @@ public static string ProfileSettingsDirectory
{ {
get get
{ {
return Path.Combine(ProfileMyComputerDirectory, "Settings"); return Path.Combine(ProfileMyComputerDirectory, "Settings");
} }
} }
@ -162,12 +162,18 @@ public static void CheckFiles()
SaveDirectoryInfo(ProfileFileSystemDirectory, false, "My Computer", false); SaveDirectoryInfo(ProfileFileSystemDirectory, false, "My Computer", false);
SaveDirectoryInfo(ProfileMyComputerDirectory, false, "Win95 (C:)", true); SaveDirectoryInfo(ProfileMyComputerDirectory, false, "Win95 (C:)", true);
if (CurrentSave.CurrentOS == "95" || CurrentSave.CurrentOS == "98") SaveDirectoryInfo(ProfileDocumentsDirectory, false, "My Documents", true); if (CurrentSave.CurrentOS == "95" || CurrentSave.CurrentOS == "98") SaveDirectoryInfo(ProfileDocumentsDirectory, false, "My Documents", true);
if (CurrentSave.CurrentOS == "2000" || CurrentSave.CurrentOS == "ME") SaveDirectoryInfo(ProfileSettingsDirectory, false, "Documents and Settings", true); if (CurrentSave.CurrentOS == "2000" || CurrentSave.CurrentOS == "ME") SaveDirectoryInfo(ProfileSettingsDirectory, false, "Documents and Settings", true);
SaveDirectoryInfo(Path.Combine(ProfileProgramsDirectory, "Accessories"), false, "Accessories", true);
SaveDirectoryInfo(ProfileProgramsDirectory, true, "Program Files", true); SaveDirectoryInfo(ProfileProgramsDirectory, true, "Program Files", true);
SaveDirectoryInfo(Path.Combine(ProfileProgramsDirectory, "Accessories"), false, "Accessories", true);
SaveDirectoryInfo(Path.Combine(ProfileProgramsDirectory, "Internet Explorer"), true, "Internet Explorer", true);
SaveDirectoryInfo(Path.Combine(ProfileProgramsDirectory, "The Microsoft Network"), true, "The Microsoft Network", true);
SaveDirectoryInfo(ProfileWindowsDirectory, true, "Windows", true); SaveDirectoryInfo(ProfileWindowsDirectory, true, "Windows", true);
CreateWindowsFile(Path.Combine(ProfileProgramsDirectory, "Accessories", "wordpad.exe"), "wordpad"); CreateWindowsFile(Path.Combine(ProfileProgramsDirectory, "Accessories", "wordpad.exe"), "wordpad");
CreateWindowsFile(Path.Combine(ProfileProgramsDirectory, "Internet Explorer", "ie20.exe"), "ie");
CreateWindowsFile(Path.Combine(ProfileProgramsDirectory, "Internet Explorer", "lnfinst.exe"), "iebrokeninstaller");
CreateWindowsFile(Path.Combine(ProfileProgramsDirectory, "The Microsoft Network", "msnver.txt"), "5900");
CreateWindowsDirectory(); CreateWindowsDirectory();
} }
@ -179,6 +185,7 @@ public static void CreateWindowsDirectory()
SaveDirectoryInfo(Path.Combine(ProfileWindowsDirectory, "Fonts"), true, "Fonts", true); SaveDirectoryInfo(Path.Combine(ProfileWindowsDirectory, "Fonts"), true, "Fonts", true);
SaveDirectoryInfo(Path.Combine(ProfileWindowsDirectory, "Help"), true, "Help", true); SaveDirectoryInfo(Path.Combine(ProfileWindowsDirectory, "Help"), true, "Help", true);
SaveDirectoryInfo(Path.Combine(ProfileWindowsDirectory, "Temp"), true, "Temp", true); SaveDirectoryInfo(Path.Combine(ProfileWindowsDirectory, "Temp"), true, "Temp", true);
SaveDirectoryInfo(Path.Combine(ProfileWindowsDirectory, "Desktop"), true, "Desktop", true);
CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "calc.exe"), "calc"); CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "calc.exe"), "calc");
CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "explorer.exe"), "explorer"); CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "explorer.exe"), "explorer");
@ -208,6 +215,10 @@ public static void UpgradeFileSystem(string oldOS, string newOS)
SaveDirectoryInfo(Path.Combine(ProfileProgramsDirectory, "Outlook Express"), false, "Outlook Express", true); SaveDirectoryInfo(Path.Combine(ProfileProgramsDirectory, "Outlook Express"), false, "Outlook Express", true);
CreateWindowsFile(Path.Combine(ProfileProgramsDirectory, "Outlook Express", "WAB.exe"), "addressbook"); CreateWindowsFile(Path.Combine(ProfileProgramsDirectory, "Outlook Express", "WAB.exe"), "addressbook");
// There is no "The Microsoft Network" folder!
if (Directory.Exists(Path.Combine(ProfileProgramsDirectory, "The Microsoft Network"))) Directory.Delete(Path.Combine(ProfileProgramsDirectory, "The Microsoft Network"), true);
} }
break; break;
} }

View file

@ -48,6 +48,7 @@
<Compile Include="BSODCreator.cs" /> <Compile Include="BSODCreator.cs" />
<None Include="packages.config" /> <None Include="packages.config" />
<None Include="Resources\WinClassic\Window\pjBg6mKP.bin" /> <None Include="Resources\WinClassic\Window\pjBg6mKP.bin" />
<Compile Include="DesktopController.cs" />
<Compile Include="FileDialogBoxManager.cs" /> <Compile Include="FileDialogBoxManager.cs" />
<Compile Include="Paintbrush.cs" /> <Compile Include="Paintbrush.cs" />
<Compile Include="SaveSystem.cs" /> <Compile Include="SaveSystem.cs" />

View file

@ -1,5 +1,7 @@
using System; using System;
using System.IO;
using System.Windows.Forms; using System.Windows.Forms;
using static TimeHACK.Engine.SaveSystem;
namespace TimeHACK.OS.Win95.Win95Apps namespace TimeHACK.OS.Win95.Win95Apps
{ {
@ -41,35 +43,35 @@ private void dlTimer_Tick(object sender, EventArgs e)
if (appName.Text == "Downloading: Guess The Number") if (appName.Text == "Downloading: Guess The Number")
{ {
Windows95.desktopicons.Items.Add("Guess The Number Setup", imageIndex: 8); CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "Desktop", "Guess The Number Setup.exe"), "GuessTheNumber");
} }
if (appName.Text == "Downloading: Start Runner") if (appName.Text == "Downloading: Start Runner")
{ {
Windows95.desktopicons.Items.Add("Start Runner Setup", imageIndex: 9); CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "Desktop", "Start Runner Setup.exe"), "StartRunner");
} }
if (appName.Text == "Downloading: Error Blaster") if (appName.Text == "Downloading: Error Blaster")
{ {
Windows95.desktopicons.Items.Add("Error Blaster Setup", imageIndex: 10); CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "Desktop", "Error Blaster Setup.exe"), "ErrorBlaster");
} }
if (appName.Text == "Downloading: Skindows 95") if (appName.Text == "Downloading: Skindows 95")
{ {
Windows95.desktopicons.Items.Add("Skindows 95 Setup", imageIndex: 12); CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "Desktop", "Skindows 95 Setup.exe"), "Skindows95Setup");
} }
if (appName.Text == "Downloading: Web Chat") if (appName.Text == "Downloading: Web Chat")
{ {
TitleScreen.frm95.desktopicons.Items.Add("Web Chat Setup", imageIndex: 11); CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "Desktop", "Web Chat Setup.exe"), "web chat setup");
} }
if (appName.Text == "Downloading: hwcv.exe") if (appName.Text == "Downloading: hwcv.exe")
{ {
Windows95.desktopicons.Items.Add("hwcv.exe", imageIndex: 14); CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "Desktop", "hwcv.exe"), "hwcv");
} }
if (appName.Text == "Downloading: Time Distorter") if (appName.Text == "Downloading: Time Distorter")
{ {
Windows95.desktopicons.Items.Add("Time Distorter Setup", imageIndex: 13); CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "Desktop", "Time Distorter Setup.exe"), "time distorter setup");
} }
if (appName.Text == "Downloading: FTP Client") if (appName.Text == "Downloading: FTP Client")
{ {
TitleScreen.frm95.desktopicons.Items.Add("FTP Client Setup", imageIndex: 11); CreateWindowsFile(Path.Combine(ProfileWindowsDirectory, "Desktop", "FTP Client setup.exe"), "ftp client setup");
} }
((Form)this.TopLevelControl).Close(); ((Form)this.TopLevelControl).Close();
dlTimer.Stop(); dlTimer.Stop();

View file

@ -32,14 +32,6 @@ private void InitializeComponent()
{ {
this.components = new System.ComponentModel.Container(); this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Windows95)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Windows95));
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.panel1 = new System.Windows.Forms.Panel();
this.panel2 = new System.Windows.Forms.Panel(); this.panel2 = new System.Windows.Forms.Panel();
this.taskbar = new System.Windows.Forms.Panel(); this.taskbar = new System.Windows.Forms.Panel();
@ -112,24 +104,12 @@ private void InitializeComponent()
this.desktopImages = new System.Windows.Forms.ImageList(this.components); this.desktopImages = new System.Windows.Forms.ImageList(this.components);
this.desktopicons = new System.Windows.Forms.ListView(); this.desktopicons = new System.Windows.Forms.ListView();
this.rightclickbackproperties = new System.Windows.Forms.ContextMenuStrip(this.components); 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.NewToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.FolderToolStripMenuItem = 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.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.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.panel1.SuspendLayout();
this.taskbar.SuspendLayout(); this.taskbar.SuspendLayout();
this.clockPanel.SuspendLayout(); this.clockPanel.SuspendLayout();
@ -960,6 +940,7 @@ private void InitializeComponent()
this.desktopImages.Images.SetKeyName(9, "WinClassicSetup.png"); this.desktopImages.Images.SetKeyName(9, "WinClassicSetup.png");
this.desktopImages.Images.SetKeyName(10, "WinClassicSetup.png"); this.desktopImages.Images.SetKeyName(10, "WinClassicSetup.png");
this.desktopImages.Images.SetKeyName(11, "WinClassicSetup.png"); this.desktopImages.Images.SetKeyName(11, "WinClassicSetup.png");
this.desktopImages.Images.SetKeyName(12, "blank-file-Windows95Icon.gif");
// //
// desktopicons // desktopicons
// //
@ -969,179 +950,73 @@ private void InitializeComponent()
this.desktopicons.BorderStyle = System.Windows.Forms.BorderStyle.None; this.desktopicons.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.desktopicons.Dock = System.Windows.Forms.DockStyle.Fill; this.desktopicons.Dock = System.Windows.Forms.DockStyle.Fill;
this.desktopicons.ForeColor = System.Drawing.Color.White; 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.LargeImageList = this.desktopImages;
this.desktopicons.Location = new System.Drawing.Point(0, 0); this.desktopicons.Location = new System.Drawing.Point(0, 0);
this.desktopicons.Name = "desktopicons"; this.desktopicons.Name = "desktopicons";
this.desktopicons.Size = new System.Drawing.Size(640, 480); this.desktopicons.Size = new System.Drawing.Size(640, 480);
this.desktopicons.TabIndex = 6; this.desktopicons.TabIndex = 6;
this.desktopicons.UseCompatibleStateImageBehavior = false; 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); this.desktopicons.MouseDown += new System.Windows.Forms.MouseEventHandler(this.desktop_mousedown);
// //
// rightclickbackproperties // rightclickbackproperties
// //
this.rightclickbackproperties.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.rightclickbackproperties.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.PropertiesToolStripMenuItem,
this.LineUpIconsToolStripMenuItem,
this.PasteToolStripMenuItem,
this.PasteShortcutToolStripMenuItem,
this.NewToolStripMenuItem1, this.NewToolStripMenuItem1,
this.deleteToolStripMenuItem,
this.PropertiesToolStripMenuItem1}); this.PropertiesToolStripMenuItem1});
this.rightclickbackproperties.Name = "ContextMenuStrip1"; this.rightclickbackproperties.Name = "ContextMenuStrip1";
this.rightclickbackproperties.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional; this.rightclickbackproperties.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional;
this.rightclickbackproperties.Size = new System.Drawing.Size(151, 136); this.rightclickbackproperties.Size = new System.Drawing.Size(128, 70);
//
// 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";
// //
// NewToolStripMenuItem1 // NewToolStripMenuItem1
// //
this.NewToolStripMenuItem1.BackColor = System.Drawing.Color.Silver; this.NewToolStripMenuItem1.BackColor = System.Drawing.Color.Silver;
this.NewToolStripMenuItem1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.NewToolStripMenuItem1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.FolderToolStripMenuItem, this.FolderToolStripMenuItem,
this.ShortcutToolStripMenuItem, this.TextDocumentToolStripMenuItem});
this.WaveSoundToolStripMenuItem,
this.TextDocumentToolStripMenuItem,
this.WordPadDocumentToolStripMenuItem,
this.BitmapImageToolStripMenuItem,
this.MicrosoftDataLinkToolStripMenuItem});
this.NewToolStripMenuItem1.Name = "NewToolStripMenuItem1"; 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"; this.NewToolStripMenuItem1.Text = "New";
// //
// FolderToolStripMenuItem // FolderToolStripMenuItem
// //
this.FolderToolStripMenuItem.BackColor = System.Drawing.Color.Silver; this.FolderToolStripMenuItem.BackColor = System.Drawing.Color.Silver;
this.FolderToolStripMenuItem.Name = "FolderToolStripMenuItem"; 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.Text = "Folder";
this.FolderToolStripMenuItem.Click += new System.EventHandler(this.FolderToolStripMenuItem_Click); 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 // TextDocumentToolStripMenuItem
// //
this.TextDocumentToolStripMenuItem.BackColor = System.Drawing.Color.Silver; this.TextDocumentToolStripMenuItem.BackColor = System.Drawing.Color.Silver;
this.TextDocumentToolStripMenuItem.Name = "TextDocumentToolStripMenuItem"; 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"; this.TextDocumentToolStripMenuItem.Text = "Text Document";
// this.TextDocumentToolStripMenuItem.Click += new System.EventHandler(this.TextDocumentToolStripMenuItem_Click);
// 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";
// //
// PropertiesToolStripMenuItem1 // PropertiesToolStripMenuItem1
// //
this.PropertiesToolStripMenuItem1.BackColor = System.Drawing.Color.Silver; this.PropertiesToolStripMenuItem1.BackColor = System.Drawing.Color.Silver;
this.PropertiesToolStripMenuItem1.Name = "PropertiesToolStripMenuItem1"; 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.Text = "Properties";
this.PropertiesToolStripMenuItem1.Click += new System.EventHandler(this.PropertiesToolStripMenuItem1_Click); this.PropertiesToolStripMenuItem1.Click += new System.EventHandler(this.PropertiesToolStripMenuItem1_Click);
// //
// desktopupdate
//
this.desktopupdate.Enabled = true;
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 // Windows95
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@ -1243,30 +1118,18 @@ private void InitializeComponent()
private System.Windows.Forms.ImageList desktopImages; private System.Windows.Forms.ImageList desktopImages;
internal System.Windows.Forms.ListView desktopicons; internal System.Windows.Forms.ListView desktopicons;
internal System.Windows.Forms.ContextMenuStrip rightclickbackproperties; 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 NewToolStripMenuItem1;
internal System.Windows.Forms.ToolStripMenuItem FolderToolStripMenuItem; 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 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.Windows.Forms.ToolStripMenuItem PropertiesToolStripMenuItem1;
internal System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Windows95)); internal System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Windows95));
private System.Windows.Forms.ToolStripMenuItem downloaderTestToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem downloaderTestToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem installerTestToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem installerTestToolStripMenuItem;
private System.Windows.Forms.Panel taskbarItems; private System.Windows.Forms.Panel taskbarItems;
private System.Windows.Forms.ToolStripMenuItem storyTest1ToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem storyTest1ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem FTPClientToolStripMenuItem; internal System.Windows.Forms.ToolStripMenuItem FTPClientToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem iE4TestToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem iE4TestToolStripMenuItem;
private System.Windows.Forms.Timer desktopupdate;
private System.Windows.Forms.ToolStripMenuItem deleteToolStripMenuItem;
} }
} }

View file

@ -23,11 +23,11 @@ public partial class Windows95 : Form
public WinClassicTimeDistorter distort; public WinClassicTimeDistorter distort;
public TaskBarController tb = new TaskBarController(); public TaskBarController tb = new TaskBarController();
public int currentappcount = 0; public int CurrentAppCount = 0;
public bool webchatInstalled = false; public bool WebChatInstalled = false;
public bool hiddenpadamsFound = false; public bool HiddenPadamsFound = false;
// Init the form // Init the form
public Windows95() public Windows95()
@ -126,7 +126,17 @@ private void Desktop_Load(object sender, EventArgs e)
app.BringToFront(); app.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() private void fontLoad()
@ -162,12 +172,6 @@ private void ShutdownToolStripMenuItem_Click(object sender, EventArgs e)
#endregion //Region #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 // Give Year Code - NYI
private void taskbartime_Click(object sender, EventArgs e) private void taskbartime_Click(object sender, EventArgs e)
{ {
@ -185,6 +189,17 @@ private void desktop_mousedown(object sender, MouseEventArgs e)
{ {
if (e.Button == MouseButtons.Right) 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.Show();
rightclickbackproperties.BringToFront(); rightclickbackproperties.BringToFront();
rightclickbackproperties.Location = MousePosition; rightclickbackproperties.Location = MousePosition;
@ -249,7 +264,7 @@ private void InternetExplorerToolStripMenuItem_Click(object sender, EventArgs e)
startmenu.Hide(); startmenu.Hide();
} }
private void desktopicons_Click(object sender, EventArgs e) private void desktopicons_DoubleClick(object sender, EventArgs e)
{ {
Point objDrawingPoint = desktopicons.PointToClient(Cursor.Position); Point objDrawingPoint = desktopicons.PointToClient(Cursor.Position);
ListViewItem objListViewItem; ListViewItem objListViewItem;
@ -268,23 +283,56 @@ private void desktopicons_Click(object sender, EventArgs e)
ie.FormClosing += new FormClosingEventHandler(InternetExplorer4_Closing); ie.FormClosing += new FormClosingEventHandler(InternetExplorer4_Closing);
startmenu.Hide(); startmenu.Hide();
} }
else if (objListViewItem.Text == "Web Chat Setup") else if (objListViewItem.Text == "My Computer")
{ {
Win95Installer inst = new Win95Installer("Web Chat 1998"); WinClassic app = wm.StartWin95(new Win95WindowsExplorer(), "Windows Explorer", Properties.Resources.WinClassicFileExplorer, true, true);
inst.InstallCompleted += (sendr, args) => WebChatToolStripMenuItem.Visible = true; AddTaskBarItem(app, app.Tag.ToString(), "Windows Explorer", Properties.Resources.WinClassicFileExplorer);
WinClassic app = wm.StartWin95(inst, "Web Chat Setup", null, true, true);
AddTaskBarItem(app, app.Tag.ToString(), "Web Chat Setup", null);
app.BringToFront(); app.BringToFront();
startmenu.Hide(); startmenu.Hide();
} }
else if (objListViewItem.Text == "FTP Client Setup") else if (objListViewItem.Text == "Network Neighborhood")
{ {
Win95Installer inst = new Win95Installer("FTP Client"); // Alex's TODO here
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); else if (objListViewItem.Text == "Recycle Bin")
app.BringToFront(); {
startmenu.Hide(); // 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());
}
} }
} }
} }
@ -311,7 +359,7 @@ public void NonImportantApp_Closing(object sender, FormClosingEventArgs e)
{ {
nonimportantapps.Remove((WinClassic)sender); nonimportantapps.Remove((WinClassic)sender);
} }
private void InternetExplorer4_Closing(object sender, FormClosingEventArgs e) public void InternetExplorer4_Closing(object sender, FormClosingEventArgs e)
{ {
ie = null; ie = null;
} }
@ -355,11 +403,6 @@ public void UpdateTaskbar()
} }
} }
private void AddressBookToolStripMenuItem_Click(object sender, EventArgs e)
{
}
private void WindowsExplorerToolStripMenuItem1_Click(object sender, EventArgs e) private void WindowsExplorerToolStripMenuItem1_Click(object sender, EventArgs e)
{ {
FileDialogBoxManager.IsInOpenDialog = false; FileDialogBoxManager.IsInOpenDialog = false;
@ -451,6 +494,83 @@ private void CalculatorToolStripMenuItem_Click(object sender, EventArgs e)
app.BringToFront(); app.BringToFront();
startmenu.Hide(); startmenu.Hide();
} }
private void desktopupdate_Tick(object sender, EventArgs e)
{
// 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"));
}
// 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 public class MyRenderer : ToolStripProfessionalRenderer
{ {

File diff suppressed because it is too large Load diff

View file

@ -22,7 +22,7 @@ public partial class Win95WindowsExplorer : UserControl
public string onlyViewExtension = ""; public string onlyViewExtension = "";
string ToReplaceWith = ProfileDirectory; string ToReplaceWith = ProfileDirectory;
string CurrentDirectory = ProfileMyComputerDirectory; public string CurrentDirectory = ProfileMyComputerDirectory;
string OldLabelText; string OldLabelText;
string CurrentCopyFile; string CurrentCopyFile;
@ -200,7 +200,7 @@ void RefreshTreeNode()
diskView.Nodes.Add(new TreeNode("Desktop", 0, 0, desktoparray)); diskView.Nodes.Add(new TreeNode("Desktop", 0, 0, desktoparray));
} }
void OpenFile(string fileDir) public void OpenFile(string fileDir)
{ {
try try
{ {
@ -227,7 +227,7 @@ void OpenFile(string fileDir)
void OpenApplication(string appname) void OpenApplication(string appname)
{ {
switch (appname.ToLower()) switch (appname.ToLower())
{ {
case "explorer": case "explorer":
Engine.Template.WinClassic app = wm.StartWin95(new Win95WindowsExplorer(), "Windows Explorer", Properties.Resources.WinClassicFileExplorer, true, true); Engine.Template.WinClassic app = wm.StartWin95(new Win95WindowsExplorer(), "Windows Explorer", Properties.Resources.WinClassicFileExplorer, true, true);
Program.AddTaskbarItem(app, app.Tag.ToString(), "Windows Explorer", Properties.Resources.WinClassicFileExplorer); Program.AddTaskbarItem(app, app.Tag.ToString(), "Windows Explorer", Properties.Resources.WinClassicFileExplorer);
@ -250,17 +250,40 @@ void OpenApplication(string appname)
Program.nonimportantapps[Program.nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(Program.NonImportantApp_Closing); Program.nonimportantapps[Program.nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(Program.NonImportantApp_Closing);
break; break;
case "addressbook": case "ie":
WinClassic appAdBk = wm.StartWin95(new WinClassicAddressBook(), "Address Book", Properties.Resources.WinClassicAddressBook, true, true); if (TitleScreen.frm95.ie != null) { wm.StartInfobox95("Error Opening Internet Explorer", "An instance of Internet Explorer 4 is already open.", Properties.Resources.Win95Warning); return; }
Program.AddTaskbarItem(appAdBk, appAdBk.Tag.ToString(), "Address Book", Properties.Resources.WinClassicAddressBook); TitleScreen.frm95.ie = wm.StartWin95(new WinClassicIE4(), "Internet Explorer 4", Properties.Resources.Win95IconIE4, true, true);
Program.AddTaskbarItem(TitleScreen.frm95.ie, TitleScreen.frm95.ie.Tag.ToString(), "Internet Explorer 4", Properties.Resources.Win95IconIE4);
TitleScreen.frm95.ie.BringToFront();
TitleScreen.frm95.ie.FormClosing += new FormClosingEventHandler(TitleScreen.frm95.InternetExplorer4_Closing);
Program.nonimportantapps.Add(appAdBk); break;
Program.nonimportantapps[Program.nonimportantapps.Count - 1].BringToFront(); case "web chat setup":
Program.nonimportantapps[Program.nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(Program.NonImportantApp_Closing); Win95Installer inst = new Win95Installer("Web Chat 1998");
inst.InstallCompleted += (sendr, args) => TitleScreen.frm95.WebChatToolStripMenuItem.Visible = true;
WinClassic appInstaller = wm.StartWin95(inst, "Web Chat Setup", null, true, true);
Program.AddTaskbarItem(appInstaller, appInstaller.Tag.ToString(), "Web Chat Setup", null);
appInstaller.BringToFront();
break;
case "ftp client setup":
Win95Installer instFtp = new Win95Installer("FTP Client");
instFtp.InstallCompleted += (sendr, args) => TitleScreen.frm95.FTPClientToolStripMenuItem.Visible = true;
WinClassic appFtp = wm.StartWin95(instFtp, "FTP Client Setup", null, true, true);
Program.AddTaskbarItem(appFtp, appFtp.Tag.ToString(), "FTP Client Setup", null);
appFtp.BringToFront();
break;
case "iebrokeninstaller":
wm.StartInfobox95("Internet Explorer Installation", "Installation Failed: The INF file was not found", Properties.Resources.Win95Error);
break;
case "addressbook":
wm.StartInfobox95("Win32 Error", "This is not a valid Win32 Application.", Properties.Resources.Win95Error);
break; break;
} }
} }
string ReturnType(string extension) { string ReturnType(string extension) {
string returnVal = ""; string returnVal = "";

View file

@ -207,7 +207,7 @@ private void loadplz_Tick(object sender, EventArgs e)
case "12PADAMS": case "12PADAMS":
webBrowser1.Document.GetElementById("wc_b").Click += new HtmlElementEventHandler(WCDownloadButton_Click); webBrowser1.Document.GetElementById("wc_b").Click += new HtmlElementEventHandler(WCDownloadButton_Click);
webBrowser1.Document.GetElementById("ftp_b").Click += new HtmlElementEventHandler(FTPDownloadButton_Click); webBrowser1.Document.GetElementById("ftp_b").Click += new HtmlElementEventHandler(FTPDownloadButton_Click);
if (!TitleScreen.frm95.hiddenpadamsFound) webBrowser1.Document.GetElementById("distort").Style += "visibility:hidden;"; if (!TitleScreen.frm95.HiddenPadamsFound) webBrowser1.Document.GetElementById("distort").Style += "visibility:hidden;";
break; break;
case "GOOGLE": case "GOOGLE":
webBrowser1.Document.GetElementById("prototype").Click += new HtmlElementEventHandler(googleprototypelink_LinkClicked); webBrowser1.Document.GetElementById("prototype").Click += new HtmlElementEventHandler(googleprototypelink_LinkClicked);

View file

@ -1,71 +0,0 @@
namespace TimeHACK.OS.Win95
{
partial class Win95SaveAs
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.listView1 = new System.Windows.Forms.ListView();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(13, 10);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(47, 13);
this.label1.TabIndex = 0;
this.label1.Text = "Save In:";
//
// listView1
//
this.listView1.Location = new System.Drawing.Point(16, 35);
this.listView1.Name = "listView1";
this.listView1.Size = new System.Drawing.Size(312, 110);
this.listView1.TabIndex = 1;
this.listView1.UseCompatibleStateImageBehavior = false;
this.listView1.View = System.Windows.Forms.View.List;
//
// Win95SaveAs
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.listView1);
this.Controls.Add(this.label1);
this.Name = "Win95SaveAs";
this.Size = new System.Drawing.Size(348, 193);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.ListView listView1;
}
}

View file

@ -1,20 +0,0 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace TimeHACK.OS.Win95
{
public partial class Win95SaveAs : UserControl
{
public Win95SaveAs()
{
InitializeComponent();
}
}
}

View file

@ -1,120 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View file

@ -32,14 +32,6 @@ private void InitializeComponent()
{ {
this.components = new System.ComponentModel.Container(); this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Windows98)); 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.panel1 = new System.Windows.Forms.Panel();
this.panel2 = new System.Windows.Forms.Panel(); this.panel2 = new System.Windows.Forms.Panel();
this.taskbar = new System.Windows.Forms.Panel(); this.taskbar = new System.Windows.Forms.Panel();
@ -111,24 +103,12 @@ private void InitializeComponent()
this.desktopImages = new System.Windows.Forms.ImageList(this.components); this.desktopImages = new System.Windows.Forms.ImageList(this.components);
this.desktopicons = new System.Windows.Forms.ListView(); this.desktopicons = new System.Windows.Forms.ListView();
this.rightclickbackproperties = new System.Windows.Forms.ContextMenuStrip(this.components); 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.NewToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.FolderToolStripMenuItem = 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.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.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.panel1.SuspendLayout();
this.taskbar.SuspendLayout(); this.taskbar.SuspendLayout();
this.clockPanel.SuspendLayout(); this.clockPanel.SuspendLayout();
@ -745,7 +725,7 @@ private void InitializeComponent()
this.downloaderTestToolStripMenuItem.BackColor = System.Drawing.Color.Silver; this.downloaderTestToolStripMenuItem.BackColor = System.Drawing.Color.Silver;
this.downloaderTestToolStripMenuItem.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("downloaderTestToolStripMenuItem.BackgroundImage"))); this.downloaderTestToolStripMenuItem.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("downloaderTestToolStripMenuItem.BackgroundImage")));
this.downloaderTestToolStripMenuItem.Name = "downloaderTestToolStripMenuItem"; 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.Text = "DownloaderTest";
this.downloaderTestToolStripMenuItem.Click += new System.EventHandler(this.downloaderTestToolStripMenuItem_Click); this.downloaderTestToolStripMenuItem.Click += new System.EventHandler(this.downloaderTestToolStripMenuItem_Click);
// //
@ -754,7 +734,7 @@ private void InitializeComponent()
this.installerTestToolStripMenuItem.BackColor = System.Drawing.Color.Silver; this.installerTestToolStripMenuItem.BackColor = System.Drawing.Color.Silver;
this.installerTestToolStripMenuItem.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("installerTestToolStripMenuItem.BackgroundImage"))); this.installerTestToolStripMenuItem.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("installerTestToolStripMenuItem.BackgroundImage")));
this.installerTestToolStripMenuItem.Name = "installerTestToolStripMenuItem"; 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.Text = "InstallerTest";
this.installerTestToolStripMenuItem.Click += new System.EventHandler(this.installerTestToolStripMenuItem_Click); this.installerTestToolStripMenuItem.Click += new System.EventHandler(this.installerTestToolStripMenuItem_Click);
// //
@ -762,7 +742,7 @@ private void InitializeComponent()
// //
this.storyTest1ToolStripMenuItem.BackgroundImage = global::TimeHACK.Properties.Resources.sliversilver; this.storyTest1ToolStripMenuItem.BackgroundImage = global::TimeHACK.Properties.Resources.sliversilver;
this.storyTest1ToolStripMenuItem.Name = "storyTest1ToolStripMenuItem"; 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.Text = "StoryTest1";
this.storyTest1ToolStripMenuItem.Click += new System.EventHandler(this.storyTest1ToolStripMenuItem_Click); this.storyTest1ToolStripMenuItem.Click += new System.EventHandler(this.storyTest1ToolStripMenuItem_Click);
// //
@ -957,178 +937,72 @@ private void InitializeComponent()
this.desktopicons.BorderStyle = System.Windows.Forms.BorderStyle.None; this.desktopicons.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.desktopicons.Dock = System.Windows.Forms.DockStyle.Fill; this.desktopicons.Dock = System.Windows.Forms.DockStyle.Fill;
this.desktopicons.ForeColor = System.Drawing.Color.White; 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.LargeImageList = this.desktopImages;
this.desktopicons.Location = new System.Drawing.Point(0, 0); this.desktopicons.Location = new System.Drawing.Point(0, 0);
this.desktopicons.Name = "desktopicons"; this.desktopicons.Name = "desktopicons";
this.desktopicons.Size = new System.Drawing.Size(640, 480); this.desktopicons.Size = new System.Drawing.Size(640, 480);
this.desktopicons.TabIndex = 6; this.desktopicons.TabIndex = 6;
this.desktopicons.UseCompatibleStateImageBehavior = false; 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); this.desktopicons.MouseDown += new System.Windows.Forms.MouseEventHandler(this.desktop_mousedown);
// //
// rightclickbackproperties // rightclickbackproperties
// //
this.rightclickbackproperties.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.rightclickbackproperties.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.PropertiesToolStripMenuItem,
this.LineUpIconsToolStripMenuItem,
this.PasteToolStripMenuItem,
this.PasteShortcutToolStripMenuItem,
this.NewToolStripMenuItem1, this.NewToolStripMenuItem1,
this.deleteToolStripMenuItem,
this.PropertiesToolStripMenuItem1}); this.PropertiesToolStripMenuItem1});
this.rightclickbackproperties.Name = "ContextMenuStrip1"; this.rightclickbackproperties.Name = "ContextMenuStrip1";
this.rightclickbackproperties.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional; this.rightclickbackproperties.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional;
this.rightclickbackproperties.Size = new System.Drawing.Size(151, 136); this.rightclickbackproperties.Size = new System.Drawing.Size(153, 92);
//
// 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";
// //
// NewToolStripMenuItem1 // NewToolStripMenuItem1
// //
this.NewToolStripMenuItem1.BackColor = System.Drawing.Color.Silver; this.NewToolStripMenuItem1.BackColor = System.Drawing.Color.Silver;
this.NewToolStripMenuItem1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.NewToolStripMenuItem1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.FolderToolStripMenuItem, this.FolderToolStripMenuItem,
this.ShortcutToolStripMenuItem, this.TextDocumentToolStripMenuItem});
this.WaveSoundToolStripMenuItem,
this.TextDocumentToolStripMenuItem,
this.WordPadDocumentToolStripMenuItem,
this.BitmapImageToolStripMenuItem,
this.MicrosoftDataLinkToolStripMenuItem});
this.NewToolStripMenuItem1.Name = "NewToolStripMenuItem1"; 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"; this.NewToolStripMenuItem1.Text = "New";
// //
// FolderToolStripMenuItem // FolderToolStripMenuItem
// //
this.FolderToolStripMenuItem.BackColor = System.Drawing.Color.Silver; this.FolderToolStripMenuItem.BackColor = System.Drawing.Color.Silver;
this.FolderToolStripMenuItem.Name = "FolderToolStripMenuItem"; 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.Text = "Folder";
this.FolderToolStripMenuItem.Click += new System.EventHandler(this.FolderToolStripMenuItem_Click); 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 // TextDocumentToolStripMenuItem
// //
this.TextDocumentToolStripMenuItem.BackColor = System.Drawing.Color.Silver; this.TextDocumentToolStripMenuItem.BackColor = System.Drawing.Color.Silver;
this.TextDocumentToolStripMenuItem.Name = "TextDocumentToolStripMenuItem"; 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"; this.TextDocumentToolStripMenuItem.Text = "Text Document";
// this.TextDocumentToolStripMenuItem.Click += new System.EventHandler(this.TextDocumentToolStripMenuItem_Click);
// 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";
// //
// PropertiesToolStripMenuItem1 // PropertiesToolStripMenuItem1
// //
this.PropertiesToolStripMenuItem1.BackColor = System.Drawing.Color.Silver; this.PropertiesToolStripMenuItem1.BackColor = System.Drawing.Color.Silver;
this.PropertiesToolStripMenuItem1.Name = "PropertiesToolStripMenuItem1"; 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.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 // Windows98
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@ -1231,28 +1105,16 @@ private void InitializeComponent()
private System.Windows.Forms.ImageList desktopImages; private System.Windows.Forms.ImageList desktopImages;
internal System.Windows.Forms.ListView desktopicons; internal System.Windows.Forms.ListView desktopicons;
internal System.Windows.Forms.ContextMenuStrip rightclickbackproperties; 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 NewToolStripMenuItem1;
internal System.Windows.Forms.ToolStripMenuItem FolderToolStripMenuItem; 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 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.Windows.Forms.ToolStripMenuItem PropertiesToolStripMenuItem1;
internal System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Windows95)); internal System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Windows95));
private System.Windows.Forms.ToolStripMenuItem downloaderTestToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem downloaderTestToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem installerTestToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem installerTestToolStripMenuItem;
private System.Windows.Forms.Panel taskbarItems; private System.Windows.Forms.Panel taskbarItems;
private System.Windows.Forms.ToolStripMenuItem storyTest1ToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem storyTest1ToolStripMenuItem;
private System.Windows.Forms.Timer desktopupdate;
private System.Windows.Forms.ToolStripMenuItem deleteToolStripMenuItem;
} }
} }

View file

@ -110,6 +110,16 @@ private void Desktop_Load(object sender, EventArgs e)
// Bring to this the front // Bring to this the front
this.BringToFront(); 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() private void fontLoad()
@ -145,12 +155,6 @@ private void ShutdownToolStripMenuItem_Click(object sender, EventArgs e)
#endregion //Region #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 // Give Year Code - NYI
private void taskbartime_Click(object sender, EventArgs e) private void taskbartime_Click(object sender, EventArgs e)
{ {
@ -168,6 +172,19 @@ private void desktop_mousedown(object sender, MouseEventArgs e)
{ {
if (e.Button == MouseButtons.Right) 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.Show();
rightclickbackproperties.BringToFront(); rightclickbackproperties.BringToFront();
rightclickbackproperties.Location = MousePosition; rightclickbackproperties.Location = MousePosition;
@ -232,7 +249,7 @@ private void InternetExplorerToolStripMenuItem_Click(object sender, EventArgs e)
startmenu.Hide(); startmenu.Hide();
} }
private void desktopicons_Click(object sender, EventArgs e) private void desktopicons_DoubleClick(object sender, EventArgs e)
{ {
Point objDrawingPoint = desktopicons.PointToClient(Cursor.Position); Point objDrawingPoint = desktopicons.PointToClient(Cursor.Position);
ListViewItem objListViewItem; ListViewItem objListViewItem;
@ -251,15 +268,60 @@ private void desktopicons_Click(object sender, EventArgs e)
ie.FormClosing += new FormClosingEventHandler(InternetExplorer4_Closing); ie.FormClosing += new FormClosingEventHandler(InternetExplorer4_Closing);
startmenu.Hide(); startmenu.Hide();
} }
else if (objListViewItem.Text == "Web Chat Setup") else if (objListViewItem.Text == "My Computer")
{ {
Win95Installer inst = new Win95Installer("Web Chat 1998"); WinClassic app = wm.StartWin95(new Win95WindowsExplorer(), "Windows Explorer", Properties.Resources.WinClassicFileExplorer, true, true);
inst.InstallCompleted += (sendr, args) => WebChatToolStripMenuItem.Visible = true; AddTaskBarItem(app, app.Tag.ToString(), "Windows Explorer", Properties.Resources.WinClassicFileExplorer);
WinClassic app = wm.StartWin95(inst, "Web Chat Setup", null, true, true);
AddTaskBarItem(app, app.Tag.ToString(), "Web Chat Setup", null);
app.BringToFront(); app.BringToFront();
startmenu.Hide(); 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
WinClassicWindowsExplorer we = new WinClassicWindowsExplorer();
// 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 @@ private void CalculatorToolStripMenuItem_Click(object sender, EventArgs e)
app.BringToFront(); app.BringToFront();
startmenu.Hide(); 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 public class MyRenderer : ToolStripProfessionalRenderer
{ {

View file

@ -121,6 +121,13 @@
<value>17, 17</value> <value>17, 17</value>
</metadata> </metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="FindToolStripMenuItem.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wQAADsEBuJFr7QAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xMzQDW3oAAAAMSURBVBhXYzhw
4AAABIQCQUtXaBsAAAAASUVORK5CYII=
</value>
</data>
<data name="InternetConnectionWizardToolStripMenuItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="InternetConnectionWizardToolStripMenuItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAALRJREFUOE+N iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAALRJREFUOE+N
@ -299,13 +306,6 @@
wwAADsMBx2+oZAAAAJJJREFUOE+tkYEOgCAIRP10/tzk4FISZ7ZuuzDwnq4KJSL1aR/txc21llBfQVbh wwAADsMBx2+oZAAAAJJJREFUOE+tkYEOgCAIRP10/tzk4FISZ7ZuuzDwnq4KJSL1aR/txc21llBfQVbh
EZJZZ5C+nEoEcIN0QDyxLVGzm6WAsMYTvRSSAqaw2jRBloApbJUBhLVub4ABqwMY1poCuEYzhPWjRkgK EZJZZ5C+nEoEcIN0QDyxLVGzm6WAsMYTvRSSAqaw2jRBloApbJUBhLVub4ABqwMY1poCuEYzhPWjRkgK
6EP7A+obqOc2EzIBeELmtqNFDECI9R3gYmPhCPH+qX6HfAJAQ7iUCwlxft5LSoDNAAAAAElFTkSuQmCC 6EP7A+obqOc2EzIBeELmtqNFDECI9R3gYmPhCPH+qX6HfAJAQ7iUCwlxft5LSoDNAAAAAElFTkSuQmCC
</value>
</data>
<data name="windowManagerTestToolStripMenuItem.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wQAADsEBuJFr7QAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xMzQDW3oAAAAMSURBVBhXYzhw
4AAABIQCQUtXaBsAAAAASUVORK5CYII=
</value> </value>
</data> </data>
<data name="downloaderTestToolStripMenuItem.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="downloaderTestToolStripMenuItem.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
@ -341,13 +341,6 @@
iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wQAADsEBuJFr7QAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xMzQDW3oAAAAMSURBVBhXYzhw wQAADsEBuJFr7QAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xMzQDW3oAAAAMSURBVBhXYzhw
4AAABIQCQUtXaBsAAAAASUVORK5CYII= 4AAABIQCQUtXaBsAAAAASUVORK5CYII=
</value>
</data>
<data name="FindToolStripMenuItem.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wQAADsEBuJFr7QAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xMzQDW3oAAAAMSURBVBhXYzhw
4AAABIQCQUtXaBsAAAAASUVORK5CYII=
</value> </value>
</data> </data>
<data name="FilesOrFoldersToolStripMenuItem.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="FilesOrFoldersToolStripMenuItem.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
@ -389,7 +382,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAADq ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAADq
ggAAAk1TRnQBSQFMAgEBDAEAAXgBAQF4AQEBIAEAASABAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAGA ggAAAk1TRnQBSQFMAgEBDAEAAZABAQGQAQEBIAEAASABAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAGA
AwABgAMAAQEBAAEgBwABAf8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A AwABgAMAAQEBAAEgBwABAf8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A
/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A /wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A
/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8AXAAB/wMAAf8DAAH/AwAB/wMAAf8DAAH/AwAB/x8AAf8DAAH/ /wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8AXAAB/wMAAf8DAAH/AwAB/wMAAf8DAAH/AwAB/x8AAf8DAAH/
@ -953,6 +946,9 @@
<metadata name="rightclickbackproperties.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="rightclickbackproperties.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>398, 17</value> <value>398, 17</value>
</metadata> </metadata>
<metadata name="desktopupdate.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>714, 17</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>63</value> <value>63</value>
</metadata> </metadata>

View file

@ -22,7 +22,7 @@ public partial class WinClassicWindowsExplorer : UserControl
public string onlyViewExtension = ""; public string onlyViewExtension = "";
string ToReplaceWith = ProfileDirectory; string ToReplaceWith = ProfileDirectory;
string CurrentDirectory = ProfileMyComputerDirectory; public string CurrentDirectory = ProfileMyComputerDirectory;
string OldLabelText; string OldLabelText;
string CurrentCopyFile; string CurrentCopyFile;
int fileType = 6; int fileType = 6;
@ -236,7 +236,7 @@ void RefreshTreeNode()
diskView.Nodes.Add(new TreeNode("Desktop", 0, 0, desktoparray)); diskView.Nodes.Add(new TreeNode("Desktop", 0, 0, desktoparray));
} }
void OpenFile(string fileDir) public void OpenFile(string fileDir)
{ {
try try
{ {
@ -285,6 +285,10 @@ void OpenApplication(string appname)
Program.nonimportantapps[Program.nonimportantapps.Count - 1].BringToFront(); Program.nonimportantapps[Program.nonimportantapps.Count - 1].BringToFront();
Program.nonimportantapps[Program.nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(Program.NonImportantApp_Closing); Program.nonimportantapps[Program.nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(Program.NonImportantApp_Closing);
break;
case "iebrokeninstaller":
wm.StartInfobox95("Internet Explorer Installation", "Installation Failed: The INF file was not found", Properties.Resources.Win95Error);
break; break;
case "addressbook": case "addressbook":
WinClassic appAdBk = wm.StartWin95(new WinClassicAddressBook(), "Address Book", Properties.Resources.WinClassicAddressBook, true, true); WinClassic appAdBk = wm.StartWin95(new WinClassicAddressBook(), "Address Book", Properties.Resources.WinClassicAddressBook, true, true);

View file

@ -212,12 +212,6 @@
<Compile Include="OS\Win95\Win95Apps\Win95WindowsExplorer.Designer.cs"> <Compile Include="OS\Win95\Win95Apps\Win95WindowsExplorer.Designer.cs">
<DependentUpon>Win95WindowsExplorer.cs</DependentUpon> <DependentUpon>Win95WindowsExplorer.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="OS\Win95\Win95SaveAs.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="OS\Win95\Win95SaveAs.Designer.cs">
<DependentUpon>Win95SaveAs.cs</DependentUpon>
</Compile>
<Compile Include="OS\Win95\Win95Apps\WinClassicTimeDistorter.cs"> <Compile Include="OS\Win95\Win95Apps\WinClassicTimeDistorter.cs">
<SubType>UserControl</SubType> <SubType>UserControl</SubType>
</Compile> </Compile>
@ -383,9 +377,6 @@
<DependentUpon>Win95WindowsExplorer.cs</DependentUpon> <DependentUpon>Win95WindowsExplorer.cs</DependentUpon>
<SubType>Designer</SubType> <SubType>Designer</SubType>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="OS\Win95\Win95SaveAs.resx">
<DependentUpon>Win95SaveAs.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="OS\Win98\Win98.resx"> <EmbeddedResource Include="OS\Win98\Win98.resx">
<DependentUpon>Win98.cs</DependentUpon> <DependentUpon>Win98.cs</DependentUpon>
<SubType>Designer</SubType> <SubType>Designer</SubType>