diff options
Diffstat (limited to 'TimeHACK.Main/OS/Win95')
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95.Designer.cs | 10 | ||||
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95.cs | 801 | ||||
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.Designer.cs | 247 | ||||
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs | 1 | ||||
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/WinClassicThemePanel.Designer.cs | 86 | ||||
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/WinClassicThemePanel.cs | 20 | ||||
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/WinClassicThemePanel.resx | 120 | ||||
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWelcome.Designer.cs | 173 | ||||
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWelcome.cs | 25 | ||||
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWelcome.resx | 120 |
10 files changed, 988 insertions, 615 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95.Designer.cs b/TimeHACK.Main/OS/Win95/Win95.Designer.cs index e789520..6464567 100644 --- a/TimeHACK.Main/OS/Win95/Win95.Designer.cs +++ b/TimeHACK.Main/OS/Win95/Win95.Designer.cs @@ -273,6 +273,7 @@ namespace TimeHACK.OS.Win95 this.ProgramsToolStripMenuItem.Padding = new System.Windows.Forms.Padding(4, 0, 25, 0); this.ProgramsToolStripMenuItem.Size = new System.Drawing.Size(138, 36); this.ProgramsToolStripMenuItem.Text = "Programs"; + this.ProgramsToolStripMenuItem.DropDown.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2); // // AccessoriesToolStripMenuItem // @@ -298,6 +299,7 @@ namespace TimeHACK.OS.Win95 this.AccessoriesToolStripMenuItem.Name = "AccessoriesToolStripMenuItem"; this.AccessoriesToolStripMenuItem.Size = new System.Drawing.Size(181, 28); this.AccessoriesToolStripMenuItem.Text = "Accessories"; + this.AccessoriesToolStripMenuItem.DropDown.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2); // // CommunicationsToolStripMenuItem // @@ -312,6 +314,7 @@ namespace TimeHACK.OS.Win95 this.CommunicationsToolStripMenuItem.Name = "CommunicationsToolStripMenuItem"; this.CommunicationsToolStripMenuItem.Size = new System.Drawing.Size(181, 28); this.CommunicationsToolStripMenuItem.Text = "Communications"; + this.CommunicationsToolStripMenuItem.DropDown.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2); // // InternetConnectionWizardToolStripMenuItem // @@ -352,6 +355,7 @@ namespace TimeHACK.OS.Win95 this.MultimediaToolStripMenuItem.Name = "MultimediaToolStripMenuItem"; this.MultimediaToolStripMenuItem.Size = new System.Drawing.Size(181, 28); this.MultimediaToolStripMenuItem.Text = "Multimedia"; + this.MultimediaToolStripMenuItem.DropDown.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2); // // CDPlayerToolStripMenuItem // @@ -410,6 +414,7 @@ namespace TimeHACK.OS.Win95 this.SystemToolsToolStripMenuItem.Name = "SystemToolsToolStripMenuItem"; this.SystemToolsToolStripMenuItem.Size = new System.Drawing.Size(181, 28); this.SystemToolsToolStripMenuItem.Text = "System Tools"; + this.SystemToolsToolStripMenuItem.DropDown.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2); // // DiskDefragmenterToolStripMenuItem // @@ -551,6 +556,7 @@ namespace TimeHACK.OS.Win95 this.StartUpToolStripMenuItem.Name = "StartUpToolStripMenuItem"; this.StartUpToolStripMenuItem.Size = new System.Drawing.Size(181, 28); this.StartUpToolStripMenuItem.Text = "Online Services"; + this.StartUpToolStripMenuItem.DropDown.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2); // // AOLInternetFREETrialToolStripMenuItem // @@ -604,6 +610,7 @@ namespace TimeHACK.OS.Win95 this.MSDOSPromptToolStripMenuItem.Name = "MSDOSPromptToolStripMenuItem"; this.MSDOSPromptToolStripMenuItem.Size = new System.Drawing.Size(181, 28); this.MSDOSPromptToolStripMenuItem.Text = "StartUp"; + this.MSDOSPromptToolStripMenuItem.DropDown.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2); // // EmptyToolStripMenuItem // @@ -741,6 +748,7 @@ namespace TimeHACK.OS.Win95 this.DocumentsToolStripMenuItem.Padding = new System.Windows.Forms.Padding(4, 0, 25, 0); this.DocumentsToolStripMenuItem.Size = new System.Drawing.Size(138, 36); this.DocumentsToolStripMenuItem.Text = "Documents"; + this.DocumentsToolStripMenuItem.DropDown.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2); // // windowManagerTestToolStripMenuItem // @@ -791,6 +799,7 @@ namespace TimeHACK.OS.Win95 this.SettingsToolStripMenuItem.Padding = new System.Windows.Forms.Padding(4, 0, 25, 0); this.SettingsToolStripMenuItem.Size = new System.Drawing.Size(138, 36); this.SettingsToolStripMenuItem.Text = "Settings"; + this.SettingsToolStripMenuItem.DropDown.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2); // // ControlPanelToolStripMenuItem // @@ -836,6 +845,7 @@ namespace TimeHACK.OS.Win95 this.FindToolStripMenuItem.RightToLeft = System.Windows.Forms.RightToLeft.No; this.FindToolStripMenuItem.Size = new System.Drawing.Size(138, 36); this.FindToolStripMenuItem.Text = "Find"; + this.FindToolStripMenuItem.DropDown.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2); // // FilesOrFoldersToolStripMenuItem // diff --git a/TimeHACK.Main/OS/Win95/Win95.cs b/TimeHACK.Main/OS/Win95/Win95.cs index b362c62..a24932d 100644 --- a/TimeHACK.Main/OS/Win95/Win95.cs +++ b/TimeHACK.Main/OS/Win95/Win95.cs @@ -1,367 +1,434 @@ -using System;
-using System.Collections.Generic;
-using System.Drawing;
-using System.IO;
-using System.Media;
-using System.Windows.Forms;
-using TimeHACK.Engine;
-using TimeHACK.Engine.Template;
-using TimeHACK.Engine.Template.Taskbars;
-using TimeHACK.OS.Win95.Win95Apps;
-using TimeHACK.WinClassicForms;
-using TimeHACK.OS.Win95.Win95Apps.Story;
-
-namespace TimeHACK.OS.Win95
-{
- public partial class Windows95 : Form
- {
- private SoundPlayer startsound;
- public WindowManager wm = new WindowManager();
-
- public List<WinClassic> nonimportantapps = new List<WinClassic>();
- public WinClassic webchat;
- public WinClassic ie;
- public TaskBarController tb = new TaskBarController();
-
- public int currentappcount = 0;
-
- public bool webchatInstalled = false;
-
- public bool hiddenpadamsFound = false;
-
- // Init the form
- public Windows95()
- {
- InitializeComponent();
- startmenu.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2);
- }
-
- // When New Game is clicked in TitleScreen.cs
- private void Desktop_Load(object sender, EventArgs e)
- {
- // Make Font Mandatory
- fontLoad();
-
- // Play Windows 95 Start Sound
- Stream audio = Properties.Resources.Win95Start;
- startsound = new SoundPlayer(audio);
- startsound.Play();
-
- // Hide the Startmenu
- startmenu.Hide();
-
- // Check for and set VM Mode
- if (this.FormBorderStyle != FormBorderStyle.None)
- {
- this.Text = "TimeHACK - VM Mode";
- }
-
- // Start the ClockTimer
- clockTimer.Start();
-
- // Set the StartMenu seperator
- startmenuitems.Items.Insert(6, new ToolStripSeparator());
-
- //nonimportantapps.Capacity = 100;
- this.SendToBack();
-
- // Update the taskbar
- UpdateTaskbar();
-
- // Bring to this the front
- this.BringToFront();
- }
-
- private void fontLoad()
- {
- this.taskbartime.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
- this.ProgramsToolStripMenuItem.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
- this.DocumentsToolStripMenuItem.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
- this.SettingsToolStripMenuItem.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
- this.FindToolStripMenuItem.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
- this.HelpToolStripMenuItem.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
- this.RunToolStripMenuItem.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
- this.SuspendToolStripMenuItem.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
- this.ShutdownToolStripMenuItem.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
- this.desktopicons.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
- }
-
- #region StartMenu
-
- // StartButton Click
- private void startbutton_Click(object sender, EventArgs e)
- {
- startmenu.Show();
- startmenu.BringToFront();
- if (taskbar.Visible) taskbar.BringToFront();
- }
-
- // Shutdown button
- private void ShutdownToolStripMenuItem_Click(object sender, EventArgs e)
- {
- Program.ShutdownApplication(Properties.Resources.tada);
- }
-
- #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)
- {
- //TODO: Set Up Save System
- }
-
- // Set the Clock
- private void clockTimer_Tick(object sender, EventArgs e)
- {
- taskbartime.Text = DateTime.Now.ToString("h:mm tt");
- }
-
- // On Desktop MouseDown
- private void desktop_mousedown(object sender, MouseEventArgs e)
- {
- if (e.Button == MouseButtons.Right)
- {
- rightclickbackproperties.Show();
- rightclickbackproperties.BringToFront();
- rightclickbackproperties.Location = MousePosition;
- }
-
- // If
- else if (e.Button == MouseButtons.Left)
- {
- rightclickbackproperties.Hide();
- startmenu.Hide();
- }
-
- else if (e.Button == MouseButtons.Middle)
- {
- rightclickbackproperties.Hide();
- }
- }
-
- private void NotePadToolStripMenuItem_Click(object sender, EventArgs e)
- {
- WinClassicNotepad wp = new WinClassicNotepad();
- WinClassic app = wm.StartWin95(wp, "Notepad", Properties.Resources.Win95IconNotepad, true, true);
- AddTaskBarItem(app, app.Tag.ToString(), "Notepad", Properties.Resources.Win95IconNotepad);
-
- nonimportantapps.Add(app);
- nonimportantapps[nonimportantapps.Count - 1].BringToFront();
- nonimportantapps[nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(NonImportantApp_Closing);
-
- app.BringToFront();
- startmenu.Hide();
- }
- private void windowManagerTestToolStripMenuItem_Click(object sender, EventArgs e)
- {
- TestApp test = new TestApp();
- WinClassic app = wm.StartWin95(test, "TestApp", null, true, true);
- AddTaskBarItem(app, app.Tag.ToString(), "TestApp", null);
- app.BringToFront();
- startmenu.Hide();
- }
-
- private void downloaderTestToolStripMenuItem_Click(object sender, EventArgs e)
- {
- WinClassicDownloader opendownload = new WinClassicDownloader();
- WinClassic app = wm.StartWin95(opendownload, "Downloader", null, false, true);
- opendownload.appName.Text = "Downloading: Survive The Day";
-
- AddTaskBarItem(app, app.Tag.ToString(), "Downloader", null);
-
- app.BringToFront();
- startmenu.Hide();
- }
-
- private void installerTestToolStripMenuItem_Click(object sender, EventArgs e)
- {
- WinClassicInstaller openinstaller = new WinClassicInstaller();
- WinClassic app = wm.StartWin95(openinstaller, "Installer", null, false, true);
-
- AddTaskBarItem(app, app.Tag.ToString(), "Installer", null);
-
- app.BringToFront();
- startmenu.Hide();
- }
-
- private void InternetExplorerToolStripMenuItem_Click(object sender, EventArgs e)
- {
- if (ie != null) { wm.StartInfobox95("Error Opening Internet Explorer", "An instance of Internet Explorer 4 is already open.", Properties.Resources.Win95Warning); return; }
- ie = wm.StartWin95(new WinClassicIE4(), "Internet Explorer 4", Properties.Resources.Win95IconIE4, true, true);
- AddTaskBarItem(ie, ie.Tag.ToString(), "Internet Explorer 4", Properties.Resources.Win95IconIE4);
- ie.BringToFront();
- ie.FormClosing += new FormClosingEventHandler(InternetExplorer4_Closing);
- startmenu.Hide();
- }
-
- private void desktopicons_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.Text == "Internet Explorer")
- {
- if (ie != null) { wm.StartInfobox95("Error Opening Internet Explorer", "An instance of Internet Explorer 4 is already open.", Properties.Resources.Win95Warning); return; }
- ie = wm.StartWin95(new WinClassicIE4(), "Internet Explorer 4", Properties.Resources.Win95IconIE4, true, true);
- AddTaskBarItem(ie, ie.Tag.ToString(), "Internet Explorer 4", Properties.Resources.Win95IconIE4);
- ie.BringToFront();
- ie.FormClosing += new FormClosingEventHandler(InternetExplorer4_Closing);
- startmenu.Hide();
- }
- else if (objListViewItem.Text == "Web Chat Setup")
- {
- WinClassicInstaller inst = new WinClassicInstaller();
- inst.installname.Text = "Web Chat 1998";
- WinClassic app = wm.StartWin95(inst, "Web Chat Setup", null, true, true);
- AddTaskBarItem(app, app.Tag.ToString(), "Web Chat Setup", null);
- app.BringToFront();
- startmenu.Hide();
- }
- }
- }
- }
-
- private void infoboxTestToolStripMenuItem_Click(object sender, EventArgs e)
- {
- WinClassic app = wm.StartInfobox95("AShifter's Infobox", "This is the very first TimeHACK Infobox. It's really easy to call, too! \n Just use wm.startInfobox95(String title, String text, Image erroricon)!", Properties.Resources.Win95Info);
-
- app.BringToFront();
- startmenu.Hide();
- }
- private void WebChatToolStripMenuItem_Click(object sender, EventArgs e)
- {
- WebChat1998 wc = new WebChat1998();
- WinClassic app = wm.StartWin95(wc, "Web Chat 1998", null, true, true);
-
- AddTaskBarItem(app, app.Tag.ToString(), "Web Chat 1998", null);
-
- app.BringToFront();
- startmenu.Hide();
- }
- public void NonImportantApp_Closing(object sender, FormClosingEventArgs e)
- {
- nonimportantapps.Remove((WinClassic)sender);
- }
- private void InternetExplorer4_Closing(object sender, FormClosingEventArgs e)
- {
- ie = null;
- }
-
- private void WordPadToolStripMenuItem_Click(object sender, EventArgs e)
- {
- WinClassicWordPad wp = new WinClassicWordPad();
- WinClassic app = wm.StartWin95(wp, "Wordpad", Properties.Resources.Win95IconWordpad, true, true);
- AddTaskBarItem(app, app.Tag.ToString(), "Wordpad", Properties.Resources.Win95IconWordpad);
-
- nonimportantapps.Add(app);
- nonimportantapps[nonimportantapps.Count - 1].BringToFront();
- nonimportantapps[nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(NonImportantApp_Closing);
-
- app.BringToFront();
- startmenu.Hide();
- }
-
- public void AddTaskBarItem(Form Application, string ApplicationID, string ApplicationName, Image ApplicationIcon)
- {
- taskbarItems = tb.AddTaskbarItem95(ApplicationID, ApplicationName, ApplicationIcon, (UserControl)new Win95TaskBarItem(), taskbarItems);
- Application.FormClosed += new FormClosedEventHandler(UpdateTaskbarFromClosedApplication);
- }
-
- public void UpdateTaskbarFromClosedApplication(object sender, FormClosedEventArgs e)
- {
- UpdateTaskbar();
- }
-
- public void UpdateTaskbar()
- {
- // Clears out all the items on the taskbar
- taskbarItems.Controls.Clear();
-
- // Loops through all the Applications which are open
-
- foreach (Form form in tb.GetAllOpenApps())
- {
- // Calls that "AddToTaskbar" thing
- taskbarItems = tb.AddTaskbarItem95(form.Tag.ToString(), form.Text.ToString(), (Image)form.Icon.ToBitmap(), (UserControl)new Win95TaskBarItem(), taskbarItems);
- }
- }
-
- private void AddressBookToolStripMenuItem_Click(object sender, EventArgs e)
- {
- WinClassicAddressBook ab = new WinClassicAddressBook();
- WinClassic app = wm.StartWin95(ab, "Address Book", Properties.Resources.WinClassicAddressBook, true, true);
- AddTaskBarItem(app, app.Tag.ToString(), "Address Book", Properties.Resources.WinClassicAddressBook);
-
- nonimportantapps.Add(app);
- nonimportantapps[nonimportantapps.Count - 1].BringToFront();
- nonimportantapps[nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(NonImportantApp_Closing);
-
- app.BringToFront();
- startmenu.Hide();
- }
-
- private void WindowsExplorerToolStripMenuItem1_Click(object sender, EventArgs e)
- {
- FileDialogBoxManager.IsInOpenDialog = false;
- FileDialogBoxManager.IsInSaveDialog = false;
- WinClassicWindowsExplorer we = new WinClassicWindowsExplorer();
- WinClassic app = wm.StartWin95(we, "Windows Explorer", Properties.Resources.WinClassicFileExplorer, true, true);
- AddTaskBarItem(app, app.Tag.ToString(), "Windows Explorer", Properties.Resources.WinClassicFileExplorer);
-
- nonimportantapps.Add(app);
- nonimportantapps[nonimportantapps.Count - 1].BringToFront();
- nonimportantapps[nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(NonImportantApp_Closing);
-
- app.BringToFront();
- startmenu.Hide();
- }
-
- private void storyTest1ToolStripMenuItem_Click(object sender, EventArgs e)
- {
- Hack1.startObjective();
- }
-
- private void temp_for_std(object sender, EventArgs e)
- {
- System.Threading.Thread thread = new System.Threading.Thread(StartSurviveTheDay);
-
- thread.Start();
- }
-
- void StartSurviveTheDay()
- {
- Win2K.Win2KApps.SurviveTheDay std = new Win2K.Win2KApps.SurviveTheDay();
- WinClassic app = wm.StartWin95(std, "Survive The Day", null, false, false);
- AddTaskBarItem(app, app.Tag.ToString(), "Survive The Day", null);
-
- nonimportantapps.Add(app);
- nonimportantapps[nonimportantapps.Count - 1].BringToFront();
- nonimportantapps[nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(NonImportantApp_Closing);
-
- app.BringToFront();
- startmenu.Hide();
- }
-
- private void MSDOSPromptToolStripMenuItem1_Click (object sender, EventArgs e)
- {
- WinClassicTerminal msdos = new WinClassicTerminal(false);
- WinClassic app = wm.StartWin95(msdos, "MS-DOS Prompt", Properties.Resources.MS_DOS, true, true, false);
-
- AddTaskBarItem(app, app.Tag.ToString(), "MS-DOS Prompt", Properties.Resources.MS_DOS);
- app.BringToFront();
- startmenu.Hide();
- }
- }
-}
-
+using System; +using System.Collections.Generic; +using System.Drawing; +using System.IO; +using System.Media; +using System.Windows.Forms; +using TimeHACK.Engine; +using TimeHACK.Engine.Template; +using TimeHACK.Engine.Template.Taskbars; +using TimeHACK.OS.Win95.Win95Apps; +using TimeHACK.WinClassicForms; +using TimeHACK.OS.Win95.Win95Apps.Story; +using static TimeHACK.Engine.SaveSystem; +namespace TimeHACK.OS.Win95 +{ + + + public partial class Windows95 : Form + { + private SoundPlayer startsound; + public WindowManager wm = new WindowManager(); + + public List<WinClassic> nonimportantapps = new List<WinClassic>(); + public WinClassic webchat; + public WinClassic ie; + public TaskBarController tb = new TaskBarController(); + + public int currentappcount = 0; + + public bool webchatInstalled = false; + + public bool hiddenpadamsFound = false; + + // Init the form + public Windows95() + { + InitializeComponent(); + startmenu.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2); + foreach (ToolStripMenuItem item in startmenuitems.Items) + { + item.MouseEnter += new EventHandler(MenuItem_MouseEnter); + item.MouseLeave += new EventHandler(MenuItem_MouseLeave); + } + foreach (ToolStripMenuItem item in ProgramsToolStripMenuItem.DropDown.Items) + { + item.MouseEnter += new EventHandler(MenuItem_MouseEnter); + item.MouseLeave += new EventHandler(MenuItem_MouseLeave); + } + } + + private void MenuItem_MouseEnter(object sender, EventArgs e) + { + //((ToolStripMenuItem)sender).ForeColor = Color.White; + } + + private void MenuItem_MouseLeave(object sender, EventArgs e) + { + //((ToolStripMenuItem)sender).ForeColor = Color.Black; + } + + // When New Game is clicked in TitleScreen.cs + private void Desktop_Load(object sender, EventArgs e) + { + //Start Menu Color - Commented until it works reliably + //startmenuitems.Renderer = new MyRenderer(); + //ProgramsToolStripMenuItem.DropDown.Renderer = new MyRenderer(); + + // Make Font Mandatory + fontLoad(); + + // Play Windows 95 Start Sound + Stream audio = Properties.Resources.Win95Start; + startsound = new SoundPlayer(audio); + startsound.Play(); + + // Hide the Startmenu + startmenu.Hide(); + + // Check for and set VM Mode + if (this.FormBorderStyle != FormBorderStyle.None) + { + this.Text = "TimeHACK - VM Mode"; + } + + // Start the ClockTimer + clockTimer.Start(); + + // Set the StartMenu seperator + startmenuitems.Items.Insert(6, new ToolStripSeparator()); + + //nonimportantapps.Capacity = 100; + this.SendToBack(); + + // Update the taskbar + UpdateTaskbar(); + + // Bring to this the front + this.BringToFront(); + + //Check if it is the first time + if (CurrentSave.FTime95 == false) + { + CurrentSave.FTime95 = true; + SaveSystem.SaveGame(); + WinClassicWelcome welcome = new WinClassicWelcome(); + WinClassic app = wm.StartWin95(welcome, "Welcome", null, false, false); + AddTaskBarItem(app, app.Tag.ToString(), "Welcome", null); + + nonimportantapps.Add(app); + nonimportantapps[nonimportantapps.Count - 1].BringToFront(); + nonimportantapps[nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(NonImportantApp_Closing); + + app.BringToFront(); + + } + } + + private void fontLoad() + { + this.taskbartime.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0))); + this.ProgramsToolStripMenuItem.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0))); + this.DocumentsToolStripMenuItem.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0))); + this.SettingsToolStripMenuItem.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0))); + this.FindToolStripMenuItem.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0))); + this.HelpToolStripMenuItem.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0))); + this.RunToolStripMenuItem.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0))); + this.SuspendToolStripMenuItem.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0))); + this.ShutdownToolStripMenuItem.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0))); + this.desktopicons.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0))); + } + + #region StartMenu + + // StartButton Click + private void startbutton_Click(object sender, EventArgs e) + { + startmenu.Show(); + startmenu.BringToFront(); + if (taskbar.Visible) taskbar.BringToFront(); + } + + // Shutdown button + private void ShutdownToolStripMenuItem_Click(object sender, EventArgs e) + { + Program.ShutdownApplication(Properties.Resources.tada); + } + + #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) + { + //TODO: Set Up Save System + } + + // Set the Clock + private void clockTimer_Tick(object sender, EventArgs e) + { + taskbartime.Text = DateTime.Now.ToString("h:mm tt"); + } + + // On Desktop MouseDown + private void desktop_mousedown(object sender, MouseEventArgs e) + { + if (e.Button == MouseButtons.Right) + { + rightclickbackproperties.Show(); + rightclickbackproperties.BringToFront(); + rightclickbackproperties.Location = MousePosition; + } + + // If + else if (e.Button == MouseButtons.Left) + { + rightclickbackproperties.Hide(); + startmenu.Hide(); + } + + else if (e.Button == MouseButtons.Middle) + { + rightclickbackproperties.Hide(); + } + } + + private void NotePadToolStripMenuItem_Click(object sender, EventArgs e) + { + WinClassicNotepad wp = new WinClassicNotepad(); + WinClassic app = wm.StartWin95(wp, "Notepad", Properties.Resources.Win95IconNotepad, true, true); + AddTaskBarItem(app, app.Tag.ToString(), "Notepad", Properties.Resources.Win95IconNotepad); + + nonimportantapps.Add(app); + nonimportantapps[nonimportantapps.Count - 1].BringToFront(); + nonimportantapps[nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(NonImportantApp_Closing); + + app.BringToFront(); + startmenu.Hide(); + } + private void windowManagerTestToolStripMenuItem_Click(object sender, EventArgs e) + { + TestApp test = new TestApp(); + WinClassic app = wm.StartWin95(test, "TestApp", null, true, true); + AddTaskBarItem(app, app.Tag.ToString(), "TestApp", null); + app.BringToFront(); + startmenu.Hide(); + } + + private void downloaderTestToolStripMenuItem_Click(object sender, EventArgs e) + { + WinClassicDownloader opendownload = new WinClassicDownloader(); + WinClassic app = wm.StartWin95(opendownload, "Downloader", null, false, true); + opendownload.appName.Text = "Downloading: Survive The Day"; + + AddTaskBarItem(app, app.Tag.ToString(), "Downloader", null); + + app.BringToFront(); + startmenu.Hide(); + } + + private void installerTestToolStripMenuItem_Click(object sender, EventArgs e) + { + WinClassicInstaller openinstaller = new WinClassicInstaller(); + WinClassic app = wm.StartWin95(openinstaller, "Installer", null, false, true); + + AddTaskBarItem(app, app.Tag.ToString(), "Installer", null); + + app.BringToFront(); + startmenu.Hide(); + } + + private void InternetExplorerToolStripMenuItem_Click(object sender, EventArgs e) + { + if (ie != null) { wm.StartInfobox95("Error Opening Internet Explorer", "An instance of Internet Explorer 4 is already open.", Properties.Resources.Win95Warning); return; } + ie = wm.StartWin95(new WinClassicIE4(), "Internet Explorer 4", Properties.Resources.Win95IconIE4, true, true); + AddTaskBarItem(ie, ie.Tag.ToString(), "Internet Explorer 4", Properties.Resources.Win95IconIE4); + ie.BringToFront(); + ie.FormClosing += new FormClosingEventHandler(InternetExplorer4_Closing); + startmenu.Hide(); + } + + private void desktopicons_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.Text == "Internet Explorer") + { + if (ie != null) { wm.StartInfobox95("Error Opening Internet Explorer", "An instance of Internet Explorer 4 is already open.", Properties.Resources.Win95Warning); return; } + ie = wm.StartWin95(new WinClassicIE4(), "Internet Explorer 4", Properties.Resources.Win95IconIE4, true, true); + AddTaskBarItem(ie, ie.Tag.ToString(), "Internet Explorer 4", Properties.Resources.Win95IconIE4); + ie.BringToFront(); + ie.FormClosing += new FormClosingEventHandler(InternetExplorer4_Closing); + startmenu.Hide(); + } + else if (objListViewItem.Text == "Web Chat Setup") + { + WinClassicInstaller inst = new WinClassicInstaller(); + inst.installname.Text = "Web Chat 1998"; + WinClassic app = wm.StartWin95(inst, "Web Chat Setup", null, true, true); + AddTaskBarItem(app, app.Tag.ToString(), "Web Chat Setup", null); + app.BringToFront(); + startmenu.Hide(); + } + } + } + } + + private void infoboxTestToolStripMenuItem_Click(object sender, EventArgs e) + { + WinClassic app = wm.StartInfobox95("AShifter's Infobox", "This is the very first TimeHACK Infobox. It's really easy to call, too! \n Just use wm.startInfobox95(String title, String text, Image erroricon)!", Properties.Resources.Win95Info); + + app.BringToFront(); + startmenu.Hide(); + } + private void WebChatToolStripMenuItem_Click(object sender, EventArgs e) + { + WebChat1998 wc = new WebChat1998(); + WinClassic app = wm.StartWin95(wc, "Web Chat 1998", null, true, true); + + AddTaskBarItem(app, app.Tag.ToString(), "Web Chat 1998", null); + + app.BringToFront(); + startmenu.Hide(); + } + public void NonImportantApp_Closing(object sender, FormClosingEventArgs e) + { + nonimportantapps.Remove((WinClassic)sender); + } + private void InternetExplorer4_Closing(object sender, FormClosingEventArgs e) + { + ie = null; + } + + private void WordPadToolStripMenuItem_Click(object sender, EventArgs e) + { + WinClassicWordPad wp = new WinClassicWordPad(); + WinClassic app = wm.StartWin95(wp, "Wordpad", Properties.Resources.Win95IconWordpad, true, true); + AddTaskBarItem(app, app.Tag.ToString(), "Wordpad", Properties.Resources.Win95IconWordpad); + + nonimportantapps.Add(app); + nonimportantapps[nonimportantapps.Count - 1].BringToFront(); + nonimportantapps[nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(NonImportantApp_Closing); + + app.BringToFront(); + startmenu.Hide(); + } + + public void AddTaskBarItem(Form Application, string ApplicationID, string ApplicationName, Image ApplicationIcon) + { + taskbarItems = tb.AddTaskbarItem95(ApplicationID, ApplicationName, ApplicationIcon, (UserControl)new Win95TaskBarItem(), taskbarItems); + Application.FormClosed += new FormClosedEventHandler(UpdateTaskbarFromClosedApplication); + } + + public void UpdateTaskbarFromClosedApplication(object sender, FormClosedEventArgs e) + { + UpdateTaskbar(); + } + + public void UpdateTaskbar() + { + // Clears out all the items on the taskbar + taskbarItems.Controls.Clear(); + + // Loops through all the Applications which are open + + foreach (Form form in tb.GetAllOpenApps()) + { + // Calls that "AddToTaskbar" thing + taskbarItems = tb.AddTaskbarItem95(form.Tag.ToString(), form.Text.ToString(), (Image)form.Icon.ToBitmap(), (UserControl)new Win95TaskBarItem(), taskbarItems); + } + } + + private void AddressBookToolStripMenuItem_Click(object sender, EventArgs e) + { + WinClassicAddressBook ab = new WinClassicAddressBook(); + WinClassic app = wm.StartWin95(ab, "Address Book", Properties.Resources.WinClassicAddressBook, true, true); + AddTaskBarItem(app, app.Tag.ToString(), "Address Book", Properties.Resources.WinClassicAddressBook); + + nonimportantapps.Add(app); + nonimportantapps[nonimportantapps.Count - 1].BringToFront(); + nonimportantapps[nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(NonImportantApp_Closing); + + app.BringToFront(); + startmenu.Hide(); + } + + private void WindowsExplorerToolStripMenuItem1_Click(object sender, EventArgs e) + { + FileDialogBoxManager.IsInOpenDialog = false; + FileDialogBoxManager.IsInSaveDialog = false; + WinClassicWindowsExplorer we = new WinClassicWindowsExplorer(); + WinClassic app = wm.StartWin95(we, "Windows Explorer", Properties.Resources.WinClassicFileExplorer, true, true); + AddTaskBarItem(app, app.Tag.ToString(), "Windows Explorer", Properties.Resources.WinClassicFileExplorer); + + nonimportantapps.Add(app); + nonimportantapps[nonimportantapps.Count - 1].BringToFront(); + nonimportantapps[nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(NonImportantApp_Closing); + + app.BringToFront(); + startmenu.Hide(); + } + + private void storyTest1ToolStripMenuItem_Click(object sender, EventArgs e) + { + Hack1.startObjective(); + } + + private void temp_for_std(object sender, EventArgs e) + { + System.Threading.Thread thread = new System.Threading.Thread(StartSurviveTheDay); + + thread.Start(); + } + + void StartSurviveTheDay() + { + Win2K.Win2KApps.SurviveTheDay std = new Win2K.Win2KApps.SurviveTheDay(); + WinClassic app = wm.StartWin95(std, "Survive The Day", null, false, false); + AddTaskBarItem(app, app.Tag.ToString(), "Survive The Day", null); + + nonimportantapps.Add(app); + nonimportantapps[nonimportantapps.Count - 1].BringToFront(); + nonimportantapps[nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(NonImportantApp_Closing); + + app.BringToFront(); + startmenu.Hide(); + } + + private void MSDOSPromptToolStripMenuItem1_Click (object sender, EventArgs e) + { + WinClassicTerminal msdos = new WinClassicTerminal(false); + WinClassic app = wm.StartWin95(msdos, "MS-DOS Prompt", Properties.Resources.MS_DOS, true, true, false); + + AddTaskBarItem(app, app.Tag.ToString(), "MS-DOS Prompt", Properties.Resources.MS_DOS); + app.BringToFront(); + startmenu.Hide(); + } + } + public class MyRenderer : ToolStripProfessionalRenderer + { + public MyRenderer() : base(new MyColors()) { } + } + + public class MyColors : ProfessionalColorTable + { + public override Color MenuItemSelectedGradientBegin + { + get { return Color.Navy; } + } + public override Color MenuItemSelectedGradientEnd + { + get { return Color.Navy; } + } + public override Color MenuItemPressedGradientBegin + { + get { return Color.Navy; } + } + public override Color MenuItemPressedGradientEnd + { + get { return Color.Navy; } + } + } +} + diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.Designer.cs b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.Designer.cs index 76d62b1..d2cea2e 100644 --- a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.Designer.cs +++ b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.Designer.cs @@ -179,24 +179,6 @@ this.googlebetalink = new System.Windows.Forms.LinkLabel(); this.googleprototypelink = new System.Windows.Forms.LinkLabel(); this.Label6 = new System.Windows.Forms.Label(); - this.googleprototype = new System.Windows.Forms.Panel(); - this.Label10 = new System.Windows.Forms.Label(); - this.Panel3 = new System.Windows.Forms.Panel(); - this.LinkLabel4 = new System.Windows.Forms.LinkLabel(); - this.Button11 = new System.Windows.Forms.Button(); - this.TextBox3 = new System.Windows.Forms.TextBox(); - this.Label9 = new System.Windows.Forms.Label(); - this.LinkLabel3 = new System.Windows.Forms.LinkLabel(); - this.LinkLabel2 = new System.Windows.Forms.LinkLabel(); - this.LinkLabel1 = new System.Windows.Forms.LinkLabel(); - this.Panel2 = new System.Windows.Forms.Panel(); - this.Label8 = new System.Windows.Forms.Label(); - this.Button10 = new System.Windows.Forms.Button(); - this.GoogleSearchButton = new System.Windows.Forms.Button(); - this.ComboBox1 = new System.Windows.Forms.ComboBox(); - this.TextBox2 = new System.Windows.Forms.TextBox(); - this.Label7 = new System.Windows.Forms.Label(); - this.pboxgoogleprototypelogo = new System.Windows.Forms.PictureBox(); this.Panel14 = new System.Windows.Forms.Panel(); this.GoButton = new System.Windows.Forms.Button(); this.addressbar = new System.Windows.Forms.ComboBox(); @@ -351,10 +333,6 @@ this.skindows95advertisment.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.PictureBox11)).BeginInit(); this.googlemain.SuspendLayout(); - this.googleprototype.SuspendLayout(); - this.Panel3.SuspendLayout(); - this.Panel2.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.pboxgoogleprototypelogo)).BeginInit(); this.Panel14.SuspendLayout(); this.Panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.PictureBox1)).BeginInit(); @@ -389,7 +367,6 @@ this.browsingarea.Controls.Add(this.secretwebsite); this.browsingarea.Controls.Add(this.skindows95advertisment); this.browsingarea.Controls.Add(this.googlemain); - this.browsingarea.Controls.Add(this.googleprototype); this.browsingarea.Dock = System.Windows.Forms.DockStyle.Fill; this.browsingarea.Location = new System.Drawing.Point(0, 111); this.browsingarea.Name = "browsingarea"; @@ -1978,205 +1955,6 @@ this.Label6.TabIndex = 0; this.Label6.Text = "Welcome To Google"; // - // googleprototype - // - this.googleprototype.AutoScroll = true; - this.googleprototype.Controls.Add(this.Label10); - this.googleprototype.Controls.Add(this.Panel3); - this.googleprototype.Controls.Add(this.LinkLabel3); - this.googleprototype.Controls.Add(this.LinkLabel2); - this.googleprototype.Controls.Add(this.LinkLabel1); - this.googleprototype.Controls.Add(this.Panel2); - this.googleprototype.Controls.Add(this.pboxgoogleprototypelogo); - this.googleprototype.Location = new System.Drawing.Point(6, 47); - this.googleprototype.Name = "googleprototype"; - this.googleprototype.Size = new System.Drawing.Size(317, 260); - this.googleprototype.TabIndex = 2; - // - // Label10 - // - this.Label10.Anchor = System.Windows.Forms.AnchorStyles.Top; - this.Label10.AutoSize = true; - this.Label10.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.Label10.Location = new System.Drawing.Point(38, 405); - this.Label10.Name = "Label10"; - this.Label10.Size = new System.Drawing.Size(215, 15); - this.Label10.TabIndex = 6; - this.Label10.Text = "Copyright ©1997-8 Stanford University"; - // - // Panel3 - // - this.Panel3.Anchor = System.Windows.Forms.AnchorStyles.Top; - this.Panel3.BackColor = System.Drawing.Color.WhiteSmoke; - this.Panel3.Controls.Add(this.LinkLabel4); - this.Panel3.Controls.Add(this.Button11); - this.Panel3.Controls.Add(this.TextBox3); - this.Panel3.Controls.Add(this.Label9); - this.Panel3.Location = new System.Drawing.Point(-83, 334); - this.Panel3.Name = "Panel3"; - this.Panel3.Size = new System.Drawing.Size(430, 65); - this.Panel3.TabIndex = 5; - // - // LinkLabel4 - // - this.LinkLabel4.AutoSize = true; - this.LinkLabel4.Location = new System.Drawing.Point(301, 44); - this.LinkLabel4.Name = "LinkLabel4"; - this.LinkLabel4.Size = new System.Drawing.Size(43, 13); - this.LinkLabel4.TabIndex = 3; - this.LinkLabel4.TabStop = true; - this.LinkLabel4.Text = "Archive"; - // - // Button11 - // - this.Button11.BackColor = System.Drawing.Color.Silver; - this.Button11.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.Button11.Location = new System.Drawing.Point(198, 34); - this.Button11.Name = "Button11"; - this.Button11.Size = new System.Drawing.Size(96, 26); - this.Button11.TabIndex = 2; - this.Button11.Text = "Subscribe"; - this.Button11.UseVisualStyleBackColor = false; - // - // TextBox3 - // - this.TextBox3.Location = new System.Drawing.Point(46, 36); - this.TextBox3.Name = "TextBox3"; - this.TextBox3.Size = new System.Drawing.Size(146, 20); - this.TextBox3.TabIndex = 1; - this.TextBox3.Text = "your e-mail"; - // - // Label9 - // - this.Label9.AutoSize = true; - this.Label9.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.Label9.Location = new System.Drawing.Point(111, 9); - this.Label9.Name = "Label9"; - this.Label9.Size = new System.Drawing.Size(212, 16); - this.Label9.TabIndex = 0; - this.Label9.Text = "Get Google! updates monthly!"; - // - // LinkLabel3 - // - this.LinkLabel3.Anchor = System.Windows.Forms.AnchorStyles.Top; - this.LinkLabel3.AutoSize = true; - this.LinkLabel3.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.LinkLabel3.Location = new System.Drawing.Point(28, 309); - this.LinkLabel3.Name = "LinkLabel3"; - this.LinkLabel3.Size = new System.Drawing.Size(115, 18); - this.LinkLabel3.TabIndex = 4; - this.LinkLabel3.TabStop = true; - this.LinkLabel3.Text = "Stanford Search"; - // - // LinkLabel2 - // - this.LinkLabel2.Anchor = System.Windows.Forms.AnchorStyles.Top; - this.LinkLabel2.AutoSize = true; - this.LinkLabel2.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.LinkLabel2.Location = new System.Drawing.Point(141, 309); - this.LinkLabel2.Name = "LinkLabel2"; - this.LinkLabel2.Size = new System.Drawing.Size(93, 18); - this.LinkLabel2.TabIndex = 3; - this.LinkLabel2.TabStop = true; - this.LinkLabel2.Text = "Linux Search"; - // - // LinkLabel1 - // - this.LinkLabel1.Anchor = System.Windows.Forms.AnchorStyles.Top; - this.LinkLabel1.AutoSize = true; - this.LinkLabel1.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.LinkLabel1.Location = new System.Drawing.Point(50, 271); - this.LinkLabel1.Name = "LinkLabel1"; - this.LinkLabel1.Size = new System.Drawing.Size(162, 25); - this.LinkLabel1.TabIndex = 2; - this.LinkLabel1.TabStop = true; - this.LinkLabel1.Text = "About Google!"; - // - // Panel2 - // - this.Panel2.Anchor = System.Windows.Forms.AnchorStyles.Top; - this.Panel2.BackColor = System.Drawing.Color.WhiteSmoke; - this.Panel2.Controls.Add(this.Label8); - this.Panel2.Controls.Add(this.Button10); - this.Panel2.Controls.Add(this.GoogleSearchButton); - this.Panel2.Controls.Add(this.ComboBox1); - this.Panel2.Controls.Add(this.TextBox2); - this.Panel2.Controls.Add(this.Label7); - this.Panel2.Location = new System.Drawing.Point(-83, 135); - this.Panel2.Name = "Panel2"; - this.Panel2.Size = new System.Drawing.Size(430, 117); - this.Panel2.TabIndex = 1; - // - // Label8 - // - this.Label8.AutoSize = true; - this.Label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.Label8.Location = new System.Drawing.Point(18, 91); - this.Label8.Name = "Label8"; - this.Label8.Size = new System.Drawing.Size(410, 16); - this.Label8.TabIndex = 5; - this.Label8.Text = "Index contains ~25 million pages (soon to be much bigger)"; - // - // Button10 - // - this.Button10.BackColor = System.Drawing.Color.Silver; - this.Button10.Location = new System.Drawing.Point(263, 65); - this.Button10.Name = "Button10"; - this.Button10.Size = new System.Drawing.Size(104, 23); - this.Button10.TabIndex = 4; - this.Button10.Text = "I\'m Feeling Lucky"; - this.Button10.UseVisualStyleBackColor = false; - // - // GoogleSearchButton - // - this.GoogleSearchButton.BackColor = System.Drawing.Color.Silver; - this.GoogleSearchButton.Location = new System.Drawing.Point(153, 65); - this.GoogleSearchButton.Name = "GoogleSearchButton"; - this.GoogleSearchButton.Size = new System.Drawing.Size(104, 23); - this.GoogleSearchButton.TabIndex = 3; - this.GoogleSearchButton.Text = "Google Search"; - this.GoogleSearchButton.UseVisualStyleBackColor = false; - this.GoogleSearchButton.Click += new System.EventHandler(this.Button9_Click); - // - // ComboBox1 - // - this.ComboBox1.FormattingEnabled = true; - this.ComboBox1.Items.AddRange(new object[] { - "10 results", - "30 results", - "100 results"}); - this.ComboBox1.Location = new System.Drawing.Point(54, 65); - this.ComboBox1.Name = "ComboBox1"; - this.ComboBox1.Size = new System.Drawing.Size(92, 21); - this.ComboBox1.TabIndex = 2; - this.ComboBox1.Text = "10 results"; - // - // TextBox2 - // - this.TextBox2.Location = new System.Drawing.Point(83, 39); - this.TextBox2.Name = "TextBox2"; - this.TextBox2.Size = new System.Drawing.Size(261, 20); - this.TextBox2.TabIndex = 1; - // - // Label7 - // - this.Label7.AutoSize = true; - this.Label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.Label7.Location = new System.Drawing.Point(121, 15); - this.Label7.Name = "Label7"; - this.Label7.Size = new System.Drawing.Size(186, 16); - this.Label7.TabIndex = 0; - this.Label7.Text = "Search the web using Google!"; - // - // pboxgoogleprototypelogo - // - this.pboxgoogleprototypelogo.Anchor = System.Windows.Forms.AnchorStyles.Top; - this.pboxgoogleprototypelogo.Location = new System.Drawing.Point(-49, 6); - this.pboxgoogleprototypelogo.Name = "pboxgoogleprototypelogo"; - this.pboxgoogleprototypelogo.Size = new System.Drawing.Size(349, 116); - this.pboxgoogleprototypelogo.TabIndex = 0; - this.pboxgoogleprototypelogo.TabStop = false; - // // Panel14 // this.Panel14.Controls.Add(this.GoButton); @@ -3256,13 +3034,6 @@ ((System.ComponentModel.ISupportInitialize)(this.PictureBox11)).EndInit(); this.googlemain.ResumeLayout(false); this.googlemain.PerformLayout(); - this.googleprototype.ResumeLayout(false); - this.googleprototype.PerformLayout(); - this.Panel3.ResumeLayout(false); - this.Panel3.PerformLayout(); - this.Panel2.ResumeLayout(false); - this.Panel2.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.pboxgoogleprototypelogo)).EndInit(); this.Panel14.ResumeLayout(false); this.Panel14.PerformLayout(); this.Panel1.ResumeLayout(false); @@ -3424,24 +3195,6 @@ internal System.Windows.Forms.LinkLabel googlebetalink; internal System.Windows.Forms.LinkLabel googleprototypelink; internal System.Windows.Forms.Label Label6; - internal System.Windows.Forms.Panel googleprototype; - internal System.Windows.Forms.Label Label10; - internal System.Windows.Forms.Panel Panel3; - internal System.Windows.Forms.LinkLabel LinkLabel4; - internal System.Windows.Forms.Button Button11; - internal System.Windows.Forms.TextBox TextBox3; - internal System.Windows.Forms.Label Label9; - internal System.Windows.Forms.LinkLabel LinkLabel3; - internal System.Windows.Forms.LinkLabel LinkLabel2; - internal System.Windows.Forms.LinkLabel LinkLabel1; - internal System.Windows.Forms.Panel Panel2; - internal System.Windows.Forms.Label Label8; - internal System.Windows.Forms.Button Button10; - internal System.Windows.Forms.Button GoogleSearchButton; - internal System.Windows.Forms.ComboBox ComboBox1; - internal System.Windows.Forms.TextBox TextBox2; - internal System.Windows.Forms.Label Label7; - internal System.Windows.Forms.PictureBox pboxgoogleprototypelogo; internal System.Windows.Forms.Panel Panel14; internal System.Windows.Forms.Button GoButton; internal System.Windows.Forms.ComboBox addressbar; diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs index bf05104..d70b520 100644 --- a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs +++ b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs @@ -38,7 +38,6 @@ namespace TimeHACK.OS.Win95.Win95Apps private void hidePrograms() { googlemain.Hide(); - googleprototype.Hide(); googlealpha.Hide(); padamsmain.Hide(); hotmailmain.Hide(); diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicThemePanel.Designer.cs b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicThemePanel.Designer.cs new file mode 100644 index 0000000..9bef59e --- /dev/null +++ b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicThemePanel.Designer.cs @@ -0,0 +1,86 @@ +namespace TimeHACK.OS.Win95.Win95Apps +{ + partial class WinClassicThemePanel + { + /// <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.pictureBox1 = new System.Windows.Forms.PictureBox(); + this.comboBox1 = new System.Windows.Forms.ComboBox(); + this.pictureBox2 = new System.Windows.Forms.PictureBox(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit(); + this.SuspendLayout(); + // + // pictureBox1 + // + this.pictureBox1.BackgroundImage = global::TimeHACK.Properties.Resources.WinClassicDisplayExample; + this.pictureBox1.Location = new System.Drawing.Point(58, 15); + this.pictureBox1.Name = "pictureBox1"; + this.pictureBox1.Size = new System.Drawing.Size(184, 169); + this.pictureBox1.TabIndex = 0; + this.pictureBox1.TabStop = false; + // + // comboBox1 + // + this.comboBox1.FormattingEnabled = true; + this.comboBox1.Location = new System.Drawing.Point(15, 201); + this.comboBox1.Name = "comboBox1"; + this.comboBox1.Size = new System.Drawing.Size(269, 21); + this.comboBox1.TabIndex = 1; + // + // pictureBox2 + // + this.pictureBox2.BackColor = System.Drawing.Color.Teal; + this.pictureBox2.Location = new System.Drawing.Point(74, 32); + this.pictureBox2.Name = "pictureBox2"; + this.pictureBox2.Size = new System.Drawing.Size(152, 112); + this.pictureBox2.TabIndex = 2; + this.pictureBox2.TabStop = false; + // + // WinClassicThemePanel + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.Silver; + this.Controls.Add(this.pictureBox2); + this.Controls.Add(this.comboBox1); + this.Controls.Add(this.pictureBox1); + this.Name = "WinClassicThemePanel"; + this.Size = new System.Drawing.Size(301, 314); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.PictureBox pictureBox1; + private System.Windows.Forms.ComboBox comboBox1; + private System.Windows.Forms.PictureBox pictureBox2; + } +} diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicThemePanel.cs b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicThemePanel.cs new file mode 100644 index 0000000..5fc072e --- /dev/null +++ b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicThemePanel.cs @@ -0,0 +1,20 @@ +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.Win95Apps +{ + public partial class WinClassicThemePanel : UserControl + { + public WinClassicThemePanel() + { + InitializeComponent(); + } + } +} diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicThemePanel.resx b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicThemePanel.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicThemePanel.resx @@ -0,0 +1,120 @@ +<?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>
\ No newline at end of file diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWelcome.Designer.cs b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWelcome.Designer.cs new file mode 100644 index 0000000..8e26658 --- /dev/null +++ b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWelcome.Designer.cs @@ -0,0 +1,173 @@ +namespace TimeHACK.OS.Win95.Win95Apps +{ + partial class WinClassicWelcome + { + /// <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.pictureBox1 = new System.Windows.Forms.PictureBox(); + this.pictureBox2 = new System.Windows.Forms.PictureBox(); + this.btnClose = new System.Windows.Forms.Button(); + this.btnOnline = new System.Windows.Forms.Button(); + this.btnNew = new System.Windows.Forms.Button(); + this.btnTour = new System.Windows.Forms.Button(); + this.label3 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.label1 = new System.Windows.Forms.Label(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit(); + this.SuspendLayout(); + // + // pictureBox1 + // + this.pictureBox1.Image = global::TimeHACK.Properties.Resources.Win95Help; + this.pictureBox1.Location = new System.Drawing.Point(27, 69); + this.pictureBox1.Name = "pictureBox1"; + this.pictureBox1.Size = new System.Drawing.Size(384, 248); + this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this.pictureBox1.TabIndex = 17; + this.pictureBox1.TabStop = false; + // + // pictureBox2 + // + this.pictureBox2.Image = global::TimeHACK.Properties.Resources.WinAboutSeparator95; + this.pictureBox2.Location = new System.Drawing.Point(445, 154); + this.pictureBox2.Name = "pictureBox2"; + this.pictureBox2.Size = new System.Drawing.Size(115, 10); + this.pictureBox2.TabIndex = 16; + this.pictureBox2.TabStop = false; + // + // btnClose + // + this.btnClose.BackColor = System.Drawing.Color.Silver; + this.btnClose.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnClose.Location = new System.Drawing.Point(443, 167); + this.btnClose.Name = "btnClose"; + this.btnClose.Size = new System.Drawing.Size(117, 23); + this.btnClose.TabIndex = 15; + this.btnClose.Text = "Close"; + this.btnClose.UseVisualStyleBackColor = false; + this.btnClose.Click += new System.EventHandler(this.btnClose_Click); + // + // btnOnline + // + this.btnOnline.BackColor = System.Drawing.Color.Silver; + this.btnOnline.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnOnline.Location = new System.Drawing.Point(443, 125); + this.btnOnline.Name = "btnOnline"; + this.btnOnline.Size = new System.Drawing.Size(117, 23); + this.btnOnline.TabIndex = 14; + this.btnOnline.Text = "Online Registration"; + this.btnOnline.UseVisualStyleBackColor = false; + // + // btnNew + // + this.btnNew.BackColor = System.Drawing.Color.Silver; + this.btnNew.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnNew.Location = new System.Drawing.Point(443, 96); + this.btnNew.Name = "btnNew"; + this.btnNew.Size = new System.Drawing.Size(117, 23); + this.btnNew.TabIndex = 13; + this.btnNew.Text = "What\'s new"; + this.btnNew.UseVisualStyleBackColor = false; + // + // btnTour + // + this.btnTour.BackColor = System.Drawing.Color.Silver; + this.btnTour.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnTour.Location = new System.Drawing.Point(445, 69); + this.btnTour.Name = "btnTour"; + this.btnTour.Size = new System.Drawing.Size(117, 23); + this.btnTour.TabIndex = 12; + this.btnTour.Text = "Windows Tour"; + this.btnTour.UseVisualStyleBackColor = false; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Font = new System.Drawing.Font("Segoe UI", 27.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label3.ForeColor = System.Drawing.Color.White; + this.label3.Location = new System.Drawing.Point(378, 0); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(62, 50); + this.label3.TabIndex = 11; + this.label3.Text = "95"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Font = new System.Drawing.Font("Segoe UI", 27.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label2.Location = new System.Drawing.Point(209, 0); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(184, 50); + this.label2.TabIndex = 10; + this.label2.Text = "Windows"; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Font = new System.Drawing.Font("Segoe UI", 27.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label1.Location = new System.Drawing.Point(3, 0); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(219, 50); + this.label1.TabIndex = 9; + this.label1.Text = "Welcome to"; + // + // WinClassicWelcome + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.pictureBox1); + this.Controls.Add(this.pictureBox2); + this.Controls.Add(this.btnClose); + this.Controls.Add(this.btnOnline); + this.Controls.Add(this.btnNew); + this.Controls.Add(this.btnTour); + this.Controls.Add(this.label3); + this.Controls.Add(this.label2); + this.Controls.Add(this.label1); + this.Name = "WinClassicWelcome"; + this.Size = new System.Drawing.Size(577, 344); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.PictureBox pictureBox1; + private System.Windows.Forms.PictureBox pictureBox2; + private System.Windows.Forms.Button btnClose; + private System.Windows.Forms.Button btnOnline; + private System.Windows.Forms.Button btnNew; + private System.Windows.Forms.Button btnTour; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label1; + } +} diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWelcome.cs b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWelcome.cs new file mode 100644 index 0000000..52a8938 --- /dev/null +++ b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWelcome.cs @@ -0,0 +1,25 @@ +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.Win95Apps +{ + public partial class WinClassicWelcome : UserControl + { + public WinClassicWelcome() + { + InitializeComponent(); + } + + private void btnClose_Click(object sender, EventArgs e) + { + this.ParentForm.Close(); + } + } +} diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWelcome.resx b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWelcome.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWelcome.resx @@ -0,0 +1,120 @@ +<?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>
\ No newline at end of file |
