diff options
| author | lempamo <[email protected]> | 2017-07-04 00:15:01 -0400 |
|---|---|---|
| committer | lempamo <[email protected]> | 2017-07-04 00:15:01 -0400 |
| commit | 59c9e070258db893745f70862c4128b97a87c9fd (patch) | |
| tree | 7faf146028a29f1ad5336ea6373407e78409400f /TimeHACK.Main | |
| parent | 34ecd67921e7205bf9f7e271458bde6d325d2753 (diff) | |
| download | histacom2-59c9e070258db893745f70862c4128b97a87c9fd.tar.gz histacom2-59c9e070258db893745f70862c4128b97a87c9fd.tar.bz2 histacom2-59c9e070258db893745f70862c4128b97a87c9fd.zip | |
some work on fixing up windows explorer
Diffstat (limited to 'TimeHACK.Main')
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWindowsExplorer.Designer.cs | 114 | ||||
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWindowsExplorer.cs | 61 | ||||
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWindowsExplorer.resx | 4 | ||||
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95SaveAs.Designer.cs | 71 | ||||
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95SaveAs.cs | 20 | ||||
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95SaveAs.resx | 120 | ||||
| -rw-r--r-- | TimeHACK.Main/Properties/Resources.Designer.cs | 20 | ||||
| -rw-r--r-- | TimeHACK.Main/Properties/Resources.resx | 6 | ||||
| -rw-r--r-- | TimeHACK.Main/Resources/WinClassic/Win95DesktopIcon.png | bin | 0 -> 168 bytes | |||
| -rw-r--r-- | TimeHACK.Main/Resources/WinClassic/Win95HardDiskIcon.png | bin | 0 -> 127 bytes | |||
| -rw-r--r-- | TimeHACK.Main/TimeHACK.Main.csproj | 11 |
11 files changed, 271 insertions, 156 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWindowsExplorer.Designer.cs b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWindowsExplorer.Designer.cs index 3d5db60..df2bb36 100644 --- a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWindowsExplorer.Designer.cs +++ b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWindowsExplorer.Designer.cs @@ -31,9 +31,8 @@ this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(WinClassicWindowsExplorer)); this.program = new System.Windows.Forms.Panel(); - this.diskView = new System.Windows.Forms.ListView(); + this.diskView = new System.Windows.Forms.TreeView(); this.icons = new System.Windows.Forms.ImageList(this.components); - this.btnGo = new System.Windows.Forms.Button(); this.MenuStrip1 = new System.Windows.Forms.MenuStrip(); this.FileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.CreateShortcutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); @@ -81,7 +80,6 @@ this.HelpToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); this.AboutWindows95ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toprightcorner = new System.Windows.Forms.Panel(); - this.dirLbl = new System.Windows.Forms.ComboBox(); this.bottomrightcorner = new System.Windows.Forms.Panel(); this.bottomleftcorner = new System.Windows.Forms.Panel(); this.topleftcorner = new System.Windows.Forms.Panel(); @@ -91,30 +89,22 @@ this.txtSave = new System.Windows.Forms.TextBox(); this.mainView = new System.Windows.Forms.ListView(); this.iconsList = new System.Windows.Forms.ImageList(this.components); - this.pnlHidden = new System.Windows.Forms.Panel(); - this.LinkLabel1 = new System.Windows.Forms.LinkLabel(); - this.Label3 = new System.Windows.Forms.Label(); - this.Label2 = new System.Windows.Forms.Label(); this.program.SuspendLayout(); this.MenuStrip1.SuspendLayout(); this.pnlSave.SuspendLayout(); - this.pnlHidden.SuspendLayout(); this.SuspendLayout(); // // program // this.program.BackColor = System.Drawing.Color.Silver; this.program.Controls.Add(this.diskView); - this.program.Controls.Add(this.btnGo); this.program.Controls.Add(this.MenuStrip1); this.program.Controls.Add(this.toprightcorner); - this.program.Controls.Add(this.dirLbl); this.program.Controls.Add(this.bottomrightcorner); this.program.Controls.Add(this.bottomleftcorner); this.program.Controls.Add(this.topleftcorner); this.program.Controls.Add(this.pnlSave); this.program.Controls.Add(this.mainView); - this.program.Controls.Add(this.pnlHidden); this.program.Dock = System.Windows.Forms.DockStyle.Fill; this.program.Location = new System.Drawing.Point(0, 0); this.program.Name = "program"; @@ -123,14 +113,12 @@ // // diskView // - this.diskView.Location = new System.Drawing.Point(3, 54); + this.diskView.ImageList = this.icons; + this.diskView.Location = new System.Drawing.Point(3, 27); this.diskView.Name = "diskView"; - this.diskView.Size = new System.Drawing.Size(213, 417); - this.diskView.SmallImageList = this.icons; + this.diskView.Size = new System.Drawing.Size(213, 444); this.diskView.TabIndex = 13; - this.diskView.UseCompatibleStateImageBehavior = false; - this.diskView.View = System.Windows.Forms.View.List; - this.diskView.Visible = false; + this.diskView.Visible = true; this.diskView.DoubleClick += new System.EventHandler(this.diskView_DoubleClick); // // icons @@ -143,19 +131,6 @@ this.icons.Images.SetKeyName(3, "WinClassicCalc.png"); this.icons.Images.SetKeyName(4, "WinClassicComputer.png"); // - // btnGo - // - this.btnGo.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnGo.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnGo.Location = new System.Drawing.Point(646, 22); - this.btnGo.Name = "btnGo"; - this.btnGo.Size = new System.Drawing.Size(55, 28); - this.btnGo.TabIndex = 12; - this.btnGo.Text = "Go"; - this.btnGo.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; - this.btnGo.UseVisualStyleBackColor = true; - this.btnGo.Click += new System.EventHandler(this.btnGo_Click); - // // MenuStrip1 // this.MenuStrip1.BackColor = System.Drawing.Color.Silver; @@ -501,26 +476,6 @@ this.toprightcorner.Size = new System.Drawing.Size(4, 4); this.toprightcorner.TabIndex = 6; // - // dirLbl - // - this.dirLbl.FormattingEnabled = true; - this.dirLbl.Items.AddRange(new object[] { - "Desktop", - "My Computer", - "3 1/2 Floppy (a:)", - "(C:)", - "(D:)", - "Control Panel", - "Printers", - "Network Neightborhood", - "Recycle Bin", - "Online Services"}); - this.dirLbl.Location = new System.Drawing.Point(11, 27); - this.dirLbl.Name = "dirLbl"; - this.dirLbl.Size = new System.Drawing.Size(629, 21); - this.dirLbl.TabIndex = 7; - this.dirLbl.Text = "My Computer"; - // // bottomrightcorner // this.bottomrightcorner.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); @@ -592,9 +547,9 @@ | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.mainView.LargeImageList = this.iconsList; - this.mainView.Location = new System.Drawing.Point(11, 54); + this.mainView.Location = new System.Drawing.Point(215, 27); this.mainView.Name = "mainView"; - this.mainView.Size = new System.Drawing.Size(690, 417); + this.mainView.Size = new System.Drawing.Size(486, 444); this.mainView.SmallImageList = this.iconsList; this.mainView.StateImageList = this.iconsList; this.mainView.TabIndex = 10; @@ -612,51 +567,6 @@ this.iconsList.Images.SetKeyName(3, "WinClassicCalc.png"); this.iconsList.Images.SetKeyName(4, "WinClassicComputer.png"); // - // pnlHidden - // - this.pnlHidden.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.pnlHidden.Controls.Add(this.LinkLabel1); - this.pnlHidden.Controls.Add(this.Label3); - this.pnlHidden.Controls.Add(this.Label2); - this.pnlHidden.Location = new System.Drawing.Point(9, 54); - this.pnlHidden.Name = "pnlHidden"; - this.pnlHidden.Size = new System.Drawing.Size(461, 417); - this.pnlHidden.TabIndex = 14; - this.pnlHidden.Visible = false; - // - // LinkLabel1 - // - this.LinkLabel1.AutoSize = true; - this.LinkLabel1.Location = new System.Drawing.Point(325, 50); - this.LinkLabel1.Name = "LinkLabel1"; - this.LinkLabel1.Size = new System.Drawing.Size(54, 13); - this.LinkLabel1.TabIndex = 1; - this.LinkLabel1.TabStop = true; - this.LinkLabel1.Text = "Click here"; - this.LinkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LinkLabel1_LinkClicked); - // - // Label3 - // - this.Label3.AutoSize = true; - this.Label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F); - this.Label3.Location = new System.Drawing.Point(3, 45); - this.Label3.Name = "Label3"; - this.Label3.Size = new System.Drawing.Size(330, 20); - this.Label3.TabIndex = 0; - this.Label3.Text = "If you want to view the contents of this folder, "; - // - // Label2 - // - this.Label2.AutoSize = true; - this.Label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.Label2.Location = new System.Drawing.Point(3, 14); - this.Label2.Name = "Label2"; - this.Label2.Size = new System.Drawing.Size(293, 31); - this.Label2.TabIndex = 0; - this.Label2.Text = "This directory is hidden"; - // // WinClassicWindowsExplorer // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -671,8 +581,6 @@ this.MenuStrip1.PerformLayout(); this.pnlSave.ResumeLayout(false); this.pnlSave.PerformLayout(); - this.pnlHidden.ResumeLayout(false); - this.pnlHidden.PerformLayout(); this.ResumeLayout(false); } @@ -680,8 +588,7 @@ #endregion internal System.Windows.Forms.Panel program; - internal System.Windows.Forms.ListView diskView; - internal System.Windows.Forms.Button btnGo; + internal System.Windows.Forms.TreeView diskView; internal System.Windows.Forms.MenuStrip MenuStrip1; internal System.Windows.Forms.ToolStripMenuItem FileToolStripMenuItem; internal System.Windows.Forms.ToolStripMenuItem CreateShortcutToolStripMenuItem; @@ -729,15 +636,10 @@ internal System.Windows.Forms.ToolStripMenuItem HelpToolStripMenuItem1; internal System.Windows.Forms.ToolStripMenuItem AboutWindows95ToolStripMenuItem; internal System.Windows.Forms.Panel toprightcorner; - internal System.Windows.Forms.ComboBox dirLbl; internal System.Windows.Forms.Panel bottomrightcorner; internal System.Windows.Forms.Panel bottomleftcorner; internal System.Windows.Forms.Panel topleftcorner; internal System.Windows.Forms.ListView mainView; - internal System.Windows.Forms.Panel pnlHidden; - internal System.Windows.Forms.LinkLabel LinkLabel1; - internal System.Windows.Forms.Label Label3; - internal System.Windows.Forms.Label Label2; internal System.Windows.Forms.Panel pnlSave; internal System.Windows.Forms.Button Button1; internal System.Windows.Forms.Label Label1; diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWindowsExplorer.cs b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWindowsExplorer.cs index 89a6b6f..c4673ed 100644 --- a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWindowsExplorer.cs +++ b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWindowsExplorer.cs @@ -48,21 +48,6 @@ namespace TimeHACK.OS.Win95.Win95Apps //' Next //'End Sub - void CheckLbl() { - try - { - dirLbl.Text = dirLbl.Text.Replace(GameDirectory, ""); - dirLbl.Text = dirLbl.Text.Replace("\\TimeHACK\\", ""); - dirLbl.Text = dirLbl.Text.Replace(ProfileDirectory, ""); - dirLbl.Text = dirLbl.Text.Replace("\\Profiles\\" + ProfileName + "\\", ""); - dirLbl.Text = dirLbl.Text.Replace("folders", "My Computer"); - //dirLbl.Text = dirLbl.Text.Substring(7, dirLbl.Text.Length - 7); - } catch - { - - } - } - String ReadDataFile(String reqDirectory, Boolean returnYesIfProtected = false) { String Val = ""; String directoryFileInfo; @@ -89,7 +74,7 @@ namespace TimeHACK.OS.Win95.Win95Apps // Refresh the right listview icons.Images.Clear(); this.mainView.Items.Clear(); - diskView.SmallImageList = icons; + diskView.ImageList = icons; this.mainView.LargeImageList = icons; // For Each drive As String In My.Computer.FileSystem.GetDirectories(GameMain.MyDocuments & "\HistacomVB\" & GameMain.SaveProfile & "\HistacomVB\Folders") // If GetPropetiesForDir(drive)(4) = "isMyDocuments" Then @@ -148,8 +133,6 @@ namespace TimeHACK.OS.Win95.Win95Apps } } } - dirLbl.Text = currentDirectory; - CheckLbl(); } catch (Exception ex) { wm.StartInfobox95("Exploring - C:", "Error with the file explorer \n" + ex.Message, Properties.Resources.Win95Info); ((Form)this.TopLevelControl).Close(); @@ -453,13 +436,14 @@ namespace TimeHACK.OS.Win95.Win95Apps //End Sub void WinClassicWindowsExplorer_Load(object sender, EventArgs e) { - //icons.Images.Add(Properties.Resources.WinClassicFolder); - //icons.Images.Add(Properties.Resources.WinClassicComputer); + diskView.ImageList.Images[0] = Properties.Resources.Win95DesktopIcon; + diskView.ImageList.Images[1] = Properties.Resources.Win95HardDiskIcon; program.BringToFront(); - dirLbl.Text = "folders"; - diskView.Items.Add("My Computer", 0); + TreeNode rootnode = new TreeNode("Desktop", 0, 0); + diskView.Nodes.Add(rootnode); + diskView.Nodes["Desktop"].Nodes.Add(new TreeNode("(C:)", 1, 1)); + //diskView.Items.Add("My Computer", 0); Application.DoEvents(); - CheckLbl(); RefreshAll(); if (FileDialogBoxManager.IsInOpenDialog) { @@ -510,8 +494,7 @@ namespace TimeHACK.OS.Win95.Win95Apps { try { - if (diskView.FocusedItem.Text == "My Computer") { - + if (diskView.SelectedNode.Text == "My Computer") { GoToDir(ProfileFileSystemDirectory); } @@ -519,30 +502,12 @@ namespace TimeHACK.OS.Win95.Win95Apps } } - void btnGo_Click(object sender, EventArgs e) + void GoToDir(string dir) { - GoToDir(ProfileDirectory + "\\" + dirLbl.Text.Replace("My Computer", "folders")); - } - - void GoToDir(String dir, Boolean GoneThoughHidden = false) - { - if (ReadDataFile(dir, true) == "yes" && (GoneThoughHidden == false)) { - attemptedDirectory = dir; - mainView.Hide(); - pnlHidden.BringToFront(); - pnlHidden.Show(); - } else { - pnlHidden.Hide(); - mainView.Show(); - mainView.BringToFront(); - currentDirectory = dir; - RefreshAll(); - } - } - - private void LinkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) - { - GoToDir(attemptedDirectory, true); + mainView.Show(); + mainView.BringToFront(); + currentDirectory = dir; + RefreshAll(); } private void FolderToolStripMenuItem_Click(object sender, EventArgs e) diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWindowsExplorer.resx b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWindowsExplorer.resx index 77c4304..8ebe617 100644 --- a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWindowsExplorer.resx +++ b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWindowsExplorer.resx @@ -125,7 +125,7 @@ AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAADG - CwAAAk1TRnQBSQFMAgEBBQEAATABAAEwAQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo + CwAAAk1TRnQBSQFMAgEBBQEAATgBAAE4AQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo AwABQAMAASADAAEBAQABCAYAAQgYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5 AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA @@ -189,7 +189,7 @@ AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAADG - CwAAAk1TRnQBSQFMAgEBBQEAARgBAAEYAQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo + CwAAAk1TRnQBSQFMAgEBBQEAASABAAEgAQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo AwABQAMAASADAAEBAQABCAYAAQgYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5 AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA diff --git a/TimeHACK.Main/OS/Win95/Win95SaveAs.Designer.cs b/TimeHACK.Main/OS/Win95/Win95SaveAs.Designer.cs new file mode 100644 index 0000000..980ddf3 --- /dev/null +++ b/TimeHACK.Main/OS/Win95/Win95SaveAs.Designer.cs @@ -0,0 +1,71 @@ +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; + } +} diff --git a/TimeHACK.Main/OS/Win95/Win95SaveAs.cs b/TimeHACK.Main/OS/Win95/Win95SaveAs.cs new file mode 100644 index 0000000..96469e4 --- /dev/null +++ b/TimeHACK.Main/OS/Win95/Win95SaveAs.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 +{ + public partial class Win95SaveAs : UserControl + { + public Win95SaveAs() + { + InitializeComponent(); + } + } +} diff --git a/TimeHACK.Main/OS/Win95/Win95SaveAs.resx b/TimeHACK.Main/OS/Win95/Win95SaveAs.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/TimeHACK.Main/OS/Win95/Win95SaveAs.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/Properties/Resources.Designer.cs b/TimeHACK.Main/Properties/Resources.Designer.cs index d0c0215..934b958 100644 --- a/TimeHACK.Main/Properties/Resources.Designer.cs +++ b/TimeHACK.Main/Properties/Resources.Designer.cs @@ -437,6 +437,16 @@ namespace TimeHACK.Properties { /// <summary> /// Looks up a localized resource of type System.Drawing.Bitmap. /// </summary> + internal static System.Drawing.Bitmap Win95DesktopIcon { + get { + object obj = ResourceManager.GetObject("Win95DesktopIcon", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// <summary> + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// </summary> internal static System.Drawing.Bitmap Win95Error { get { object obj = ResourceManager.GetObject("Win95Error", resourceCulture); @@ -447,6 +457,16 @@ namespace TimeHACK.Properties { /// <summary> /// Looks up a localized resource of type System.Drawing.Bitmap. /// </summary> + internal static System.Drawing.Bitmap Win95HardDiskIcon { + get { + object obj = ResourceManager.GetObject("Win95HardDiskIcon", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// <summary> + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// </summary> internal static System.Drawing.Bitmap Win95IconIE4 { get { object obj = ResourceManager.GetObject("Win95IconIE4", resourceCulture); diff --git a/TimeHACK.Main/Properties/Resources.resx b/TimeHACK.Main/Properties/Resources.resx index ff960e9..9e55366 100644 --- a/TimeHACK.Main/Properties/Resources.resx +++ b/TimeHACK.Main/Properties/Resources.resx @@ -534,4 +534,10 @@ <data name="MS_DOS" type="System.Resources.ResXFileRef, System.Windows.Forms"> <value>..\Resources\MS-DOS-logo-1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> </data> + <data name="Win95DesktopIcon" type="System.Resources.ResXFileRef, System.Windows.Forms"> + <value>..\Resources\WinClassic\Win95DesktopIcon.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> + </data> + <data name="Win95HardDiskIcon" type="System.Resources.ResXFileRef, System.Windows.Forms"> + <value>..\Resources\WinClassic\Win95HardDiskIcon.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> + </data> </root>
\ No newline at end of file diff --git a/TimeHACK.Main/Resources/WinClassic/Win95DesktopIcon.png b/TimeHACK.Main/Resources/WinClassic/Win95DesktopIcon.png Binary files differnew file mode 100644 index 0000000..5507563 --- /dev/null +++ b/TimeHACK.Main/Resources/WinClassic/Win95DesktopIcon.png diff --git a/TimeHACK.Main/Resources/WinClassic/Win95HardDiskIcon.png b/TimeHACK.Main/Resources/WinClassic/Win95HardDiskIcon.png Binary files differnew file mode 100644 index 0000000..1828589 --- /dev/null +++ b/TimeHACK.Main/Resources/WinClassic/Win95HardDiskIcon.png diff --git a/TimeHACK.Main/TimeHACK.Main.csproj b/TimeHACK.Main/TimeHACK.Main.csproj index 17e7093..32a7a00 100644 --- a/TimeHACK.Main/TimeHACK.Main.csproj +++ b/TimeHACK.Main/TimeHACK.Main.csproj @@ -152,6 +152,12 @@ <Compile Include="OS\Win95\Win95Apps\WinClassicWindowsExplorer.Designer.cs"> <DependentUpon>WinClassicWindowsExplorer.cs</DependentUpon> </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="SaveDialogs\LoadGameDialog.cs"> <SubType>Form</SubType> </Compile> @@ -288,6 +294,9 @@ <EmbeddedResource Include="OS\Win95\Win95Apps\WinClassicWindowsExplorer.resx"> <DependentUpon>WinClassicWindowsExplorer.cs</DependentUpon> </EmbeddedResource> + <EmbeddedResource Include="OS\Win95\Win95SaveAs.resx"> + <DependentUpon>Win95SaveAs.cs</DependentUpon> + </EmbeddedResource> <EmbeddedResource Include="SaveDialogs\LoadGameDialog.resx"> <DependentUpon>LoadGameDialog.cs</DependentUpon> </EmbeddedResource> @@ -428,6 +437,8 @@ <None Include="Resources\WinClassic\Win95Info.png" /> <None Include="Resources\WinClassic\Win95Error.png" /> <None Include="Resources\WinClassic\Win95IconNotepad.png" /> + <None Include="Resources\WinClassic\Win95DesktopIcon.png" /> + <None Include="Resources\WinClassic\Win95HardDiskIcon.png" /> <Content Include="Resources\WinClassic\Win95SideBar.png" /> <Content Include="Resources\WinClassic\Win95Start.wav" /> <None Include="Resources\WinClassic\Win95Warning.png" /> |
