diff options
| author | FloppyDiskDrive <[email protected]> | 2017-09-23 17:28:13 -0500 |
|---|---|---|
| committer | FloppyDiskDrive <[email protected]> | 2017-09-23 17:28:13 -0500 |
| commit | f08998364e88f5d3284c4ecba3d831ccfa4e282f (patch) | |
| tree | 4dd0641fd83ce8a19957d142cf0aaf03bca9e512 | |
| parent | fc1a5037e80f25705840f1668b919dd6830f6e4a (diff) | |
| download | shiftos-rewind-f08998364e88f5d3284c4ecba3d831ccfa4e282f.tar.gz shiftos-rewind-f08998364e88f5d3284c4ecba3d831ccfa4e282f.tar.bz2 shiftos-rewind-f08998364e88f5d3284c4ecba3d831ccfa4e282f.zip | |
Added the Engine (yay!)
| -rw-r--r-- | .vs/ShiftOS/v15/sqlite3/storage.ide | bin | 0 -> 1994752 bytes | |||
| -rw-r--r-- | ShiftOS.Engine/Properties/Resources.Designer.cs | 73 | ||||
| -rw-r--r-- | ShiftOS.Engine/Properties/Resources.resx | 124 | ||||
| -rw-r--r-- | ShiftOS.Engine/Resources/Symbolinfo.png | bin | 0 -> 56780 bytes | |||
| -rw-r--r-- | ShiftOS.Engine/Templates/InfoboxTemplate.Designer.cs | 110 | ||||
| -rw-r--r-- | ShiftOS.Engine/Templates/InfoboxTemplate.cs | 35 | ||||
| -rw-r--r-- | ShiftOS.Engine/Templates/InfoboxTemplate.resx | 120 | ||||
| -rw-r--r-- | ShiftOS.Engine/Templates/WindowTemplate.Designer.cs | 38 | ||||
| -rw-r--r-- | ShiftOS.Engine/Templates/WindowTemplate.cs | 20 | ||||
| -rw-r--r-- | ShiftOS.Engine/Templates/WindowTemplate.resx | 120 | ||||
| -rw-r--r-- | ShiftOS.Main/HijackScreen.cs | 76 |
11 files changed, 678 insertions, 38 deletions
diff --git a/.vs/ShiftOS/v15/sqlite3/storage.ide b/.vs/ShiftOS/v15/sqlite3/storage.ide Binary files differnew file mode 100644 index 0000000..99660d9 --- /dev/null +++ b/.vs/ShiftOS/v15/sqlite3/storage.ide diff --git a/ShiftOS.Engine/Properties/Resources.Designer.cs b/ShiftOS.Engine/Properties/Resources.Designer.cs new file mode 100644 index 0000000..1db5cd3 --- /dev/null +++ b/ShiftOS.Engine/Properties/Resources.Designer.cs @@ -0,0 +1,73 @@ +//------------------------------------------------------------------------------ +// <auto-generated> +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// </auto-generated> +//------------------------------------------------------------------------------ + +namespace ShiftOS.Engine.Properties { + using System; + + + /// <summary> + /// A strongly-typed resource class, for looking up localized strings, etc. + /// </summary> + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// <summary> + /// Returns the cached ResourceManager instance used by this class. + /// </summary> + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ShiftOS.Engine.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// <summary> + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// </summary> + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// <summary> + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// </summary> + internal static System.Drawing.Bitmap Symbolinfo { + get { + object obj = ResourceManager.GetObject("Symbolinfo", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + } +} diff --git a/ShiftOS.Engine/Properties/Resources.resx b/ShiftOS.Engine/Properties/Resources.resx new file mode 100644 index 0000000..43533b1 --- /dev/null +++ b/ShiftOS.Engine/Properties/Resources.resx @@ -0,0 +1,124 @@ +<?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> + <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> + <data name="Symbolinfo" type="System.Resources.ResXFileRef, System.Windows.Forms"> + <value>..\Resources\Symbolinfo.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/ShiftOS.Engine/Resources/Symbolinfo.png b/ShiftOS.Engine/Resources/Symbolinfo.png Binary files differnew file mode 100644 index 0000000..659d9b3 --- /dev/null +++ b/ShiftOS.Engine/Resources/Symbolinfo.png diff --git a/ShiftOS.Engine/Templates/InfoboxTemplate.Designer.cs b/ShiftOS.Engine/Templates/InfoboxTemplate.Designer.cs new file mode 100644 index 0000000..ca37891 --- /dev/null +++ b/ShiftOS.Engine/Templates/InfoboxTemplate.Designer.cs @@ -0,0 +1,110 @@ +namespace ShiftOS.Engine.Templates +{ + partial class InfoboxTemplate + { + /// <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.label1 = new System.Windows.Forms.Label(); + this.button2 = new System.Windows.Forms.Button(); + this.button1 = new System.Windows.Forms.Button(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); + this.SuspendLayout(); + // + // pictureBox1 + // + this.pictureBox1.Image = global::ShiftOS.Engine.Properties.Resources.Symbolinfo; + this.pictureBox1.Location = new System.Drawing.Point(15, 17); + this.pictureBox1.Name = "pictureBox1"; + this.pictureBox1.Size = new System.Drawing.Size(80, 70); + this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; + this.pictureBox1.TabIndex = 0; + this.pictureBox1.TabStop = false; + // + // label1 + // + this.label1.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.label1.AutoSize = true; + this.label1.Font = new System.Drawing.Font("Lucida Console", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label1.Location = new System.Drawing.Point(114, 40); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(115, 15); + this.label1.TabIndex = 1; + this.label1.Text = "Generic Body"; + // + // button2 + // + this.button2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button2.Font = new System.Drawing.Font("Lucida Console", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.button2.Location = new System.Drawing.Point(194, 122); + this.button2.Name = "button2"; + this.button2.Size = new System.Drawing.Size(116, 27); + this.button2.TabIndex = 3; + this.button2.Text = "No"; + this.button2.UseVisualStyleBackColor = true; + // + // button1 + // + this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button1.Font = new System.Drawing.Font("Lucida Console", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.button1.Location = new System.Drawing.Point(51, 122); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(116, 27); + this.button1.TabIndex = 4; + this.button1.Text = "Yes"; + this.button1.UseVisualStyleBackColor = true; + // + // InfoboxTemplate + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.button1); + this.Controls.Add(this.button2); + this.Controls.Add(this.label1); + this.Controls.Add(this.pictureBox1); + this.Name = "InfoboxTemplate"; + this.Size = new System.Drawing.Size(367, 177); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.PictureBox pictureBox1; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Button button2; + private System.Windows.Forms.Button button1; + } +} diff --git a/ShiftOS.Engine/Templates/InfoboxTemplate.cs b/ShiftOS.Engine/Templates/InfoboxTemplate.cs new file mode 100644 index 0000000..bfc91a6 --- /dev/null +++ b/ShiftOS.Engine/Templates/InfoboxTemplate.cs @@ -0,0 +1,35 @@ +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 ShiftOS.Engine.Templates +{ + public partial class InfoboxTemplate : UserControl + { + public int buttonResult; + public InfoboxTemplate(buttonType type) + { + InitializeComponent(); + switch (type) + { + case buttonType.OK: + button1.Text = "OK"; + button2.Visible = false; + button1.Location = new Point(117, 122); + + } + } + public enum buttonType + { + YesNo, + OK, + OKCancel, + } + } +} diff --git a/ShiftOS.Engine/Templates/InfoboxTemplate.resx b/ShiftOS.Engine/Templates/InfoboxTemplate.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/ShiftOS.Engine/Templates/InfoboxTemplate.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/ShiftOS.Engine/Templates/WindowTemplate.Designer.cs b/ShiftOS.Engine/Templates/WindowTemplate.Designer.cs new file mode 100644 index 0000000..9ac8209 --- /dev/null +++ b/ShiftOS.Engine/Templates/WindowTemplate.Designer.cs @@ -0,0 +1,38 @@ +namespace ShiftOS.Engine.Templates +{ + partial class WindowTemplate + { + /// <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 Windows Form 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.components = new System.ComponentModel.Container(); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Text = "WindowTemplate"; + } + + #endregion + } +}
\ No newline at end of file diff --git a/ShiftOS.Engine/Templates/WindowTemplate.cs b/ShiftOS.Engine/Templates/WindowTemplate.cs new file mode 100644 index 0000000..6af48b0 --- /dev/null +++ b/ShiftOS.Engine/Templates/WindowTemplate.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace ShiftOS.Engine.Templates +{ + public partial class WindowTemplate : Form + { + public WindowTemplate() + { + InitializeComponent(); + } + } +} diff --git a/ShiftOS.Engine/Templates/WindowTemplate.resx b/ShiftOS.Engine/Templates/WindowTemplate.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/ShiftOS.Engine/Templates/WindowTemplate.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/ShiftOS.Main/HijackScreen.cs b/ShiftOS.Main/HijackScreen.cs index 268afb4..cc93524 100644 --- a/ShiftOS.Main/HijackScreen.cs +++ b/ShiftOS.Main/HijackScreen.cs @@ -51,9 +51,9 @@ namespace ShiftOS.Main this.FormBorderStyle = FormBorderStyle.None; this.WindowState = FormWindowState.Maximized; - if (Directory.Exists("C:\\ShiftOS")) + if (Directory.Exists("C:\\ShiftOS-Rewind")) { - if (File.ReadAllText("C:/ShiftOS/Shiftum42/HDAccess.sft") == actualshiftversion) + if (File.ReadAllText("C:/ShiftOS-Rewind/Shiftum42/HDAccess.sft") == actualshiftversion) { //ShiftOSDesktop.Show(); conversationtimer.Start(); @@ -69,9 +69,9 @@ namespace ShiftOS.Main } else { - oldversion = System.IO.File.ReadAllText("C:/ShiftOS/Shiftum42/HDAccess.sft"); + oldversion = System.IO.File.ReadAllText("C:/ShiftOS-Rewind/Shiftum42/HDAccess.sft"); upgraded = true; - System.IO.Directory.Delete("C:/ShiftOS/", true); + System.IO.Directory.Delete("C:/ShiftOS-Rewind/", true); backgroundWorker1.RunWorkerAsync(); conversationtimer.Start(); hackeffecttimer.Start(); @@ -253,14 +253,14 @@ namespace ShiftOS.Main case 1: case 2: textgeninput.Text = textgeninput.Text + "C:/Home"; - if ((!System.IO.Directory.Exists("C:/ShiftOS/Home"))) - System.IO.Directory.CreateDirectory("C:/ShiftOS/Home"); + if ((!System.IO.Directory.Exists("C:/ShiftOS-Rewind/Home"))) + System.IO.Directory.CreateDirectory("C:/ShiftOS-Rewind/Home"); break; case 3: case 4: textgeninput.Text = textgeninput.Text + "C:/Home/Documents"; - if ((!System.IO.Directory.Exists("C:/ShiftOS/Home/Documents"))) - System.IO.Directory.CreateDirectory("C:/ShiftOS/Home/Documents"); + if ((!System.IO.Directory.Exists("C:/ShiftOS-Rewind/Home/Documents"))) + System.IO.Directory.CreateDirectory("C:/ShiftOS-Rewind/Home/Documents"); break; case 5: case 6: @@ -268,35 +268,35 @@ namespace ShiftOS.Main case 8: case 9: textgeninput.Text = textgeninput.Text + "C:/Home/Documents/ShiftOSInfo.txt"; - fs = File.Create("C:/ShiftOS/Home/Documents/ShiftOSInfo.txt"); + fs = File.Create("C:/ShiftOS-Rewind/Home/Documents/ShiftOSInfo.txt"); fs.Close(); break; case 10: case 11: case 12: textgeninput.Text = textgeninput.Text + "C:/Home/Music"; - if ((!System.IO.Directory.Exists("C:/ShiftOS/Home/Music"))) - System.IO.Directory.CreateDirectory("C:/ShiftOS/Home/Music"); + if ((!System.IO.Directory.Exists("C:/ShiftOS-Rewind/Home/Music"))) + System.IO.Directory.CreateDirectory("C:/ShiftOS-Rewind/Home/Music"); break; case 13: case 14: case 15: textgeninput.Text = textgeninput.Text + "C:/Home/Pictures"; - if ((!System.IO.Directory.Exists("C:/ShiftOS/Home/Pictures"))) - System.IO.Directory.CreateDirectory("C:/ShiftOS/Home/Pictures"); + if ((!System.IO.Directory.Exists("C:/ShiftOS-Rewind/Home/Pictures"))) + System.IO.Directory.CreateDirectory("C:/ShiftOS-Rewind/Home/Pictures"); break; case 16: case 17: case 18: textgeninput.Text = textgeninput.Text + "C:/Shiftum42"; - if ((!System.IO.Directory.Exists("C:/ShiftOS/Shiftum42"))) - System.IO.Directory.CreateDirectory("C:/ShiftOS/Shiftum42"); + if ((!System.IO.Directory.Exists("C:/ShiftOS-Rewind/Shiftum42"))) + System.IO.Directory.CreateDirectory("C:/ShiftOS-Rewind/Shiftum42"); break; case 19: case 20: textgeninput.Text = textgeninput.Text + "C:/Shiftum42/Drivers"; - if ((!System.IO.Directory.Exists("C:/ShiftOS/Shiftum42/Drivers"))) - System.IO.Directory.CreateDirectory("C:/ShiftOS/Shiftum42/Drivers"); + if ((!System.IO.Directory.Exists("C:/ShiftOS-Rewind/Shiftum42/Drivers"))) + System.IO.Directory.CreateDirectory("C:/ShiftOS-Rewind/Shiftum42/Drivers"); break; case 21: case 22: @@ -306,7 +306,7 @@ namespace ShiftOS.Main case 26: case 27: textgeninput.Text = textgeninput.Text + "C:/Shiftum42/Drivers/HDD.dri"; - fs = File.Create("C:/ShiftOS/Shiftum42/Drivers/HDD.dri"); + fs = File.Create("C:/ShiftOS-Rewind/Shiftum42/Drivers/HDD.dri"); fs.Close(); break; case 28: @@ -318,7 +318,7 @@ namespace ShiftOS.Main case 34: case 35: textgeninput.Text = textgeninput.Text + "C:/Shiftum42/Drivers/Keyboard.dri"; - fs = File.Create("C:/ShiftOS/Shiftum42/Drivers/Keyboard.dri"); + fs = File.Create("C:/ShiftOS-Rewind/Shiftum42/Drivers/Keyboard.dri"); fs.Close(); break; case 36: @@ -331,7 +331,7 @@ namespace ShiftOS.Main case 43: case 44: textgeninput.Text = textgeninput.Text + "C:/Shiftum42/Drivers/Monitor.dri"; - fs = File.Create("C:/ShiftOS/Shiftum42/Drivers/Monitor.dri"); + fs = File.Create("C:/ShiftOS-Rewind/Shiftum42/Drivers/Monitor.dri"); fs.Close(); break; case 45: @@ -343,7 +343,7 @@ namespace ShiftOS.Main case 51: case 52: textgeninput.Text = textgeninput.Text + "C:/Shiftum42/Drivers/Mouse.dri"; - fs = File.Create("C:/ShiftOS/Shiftum42/Drivers/Mouse.dri"); + fs = File.Create("C:/ShiftOS-Rewind/Shiftum42/Drivers/Mouse.dri"); fs.Close(); break; case 53: @@ -355,7 +355,7 @@ namespace ShiftOS.Main case 59: case 60: textgeninput.Text = textgeninput.Text + "C:/Shiftum42/Drivers/Printer.dri"; - fs = File.Create("C:/ShiftOS/Shiftum42/Drivers/Printer.dri"); + fs = File.Create("C:/ShiftOS-Rewind/Shiftum42/Drivers/Printer.dri"); fs.Close(); break; case 61: @@ -367,8 +367,8 @@ namespace ShiftOS.Main case 67: case 68: textgeninput.Text = textgeninput.Text + "C:/Shiftum42/Languages/"; - if ((!System.IO.Directory.Exists("C:/ShiftOS/Shiftum42/Languages/"))) - System.IO.Directory.CreateDirectory("C:/ShiftOS/Shiftum42/Languages/"); + if ((!System.IO.Directory.Exists("C:/ShiftOS-Rewind/Shiftum42/Languages/"))) + System.IO.Directory.CreateDirectory("C:/ShiftOS-Rewind/Shiftum42/Languages/"); break; case 69: case 70: @@ -379,7 +379,7 @@ namespace ShiftOS.Main case 75: case 76: textgeninput.Text = textgeninput.Text + "C:/Shiftum42/Languages/English.lang"; - fs = File.Create("C:/ShiftOS/Shiftum42/Languages/English.lang"); + fs = File.Create("C:/ShiftOS-Rewind/Shiftum42/Languages/English.lang"); fs.Close(); break; case 77: @@ -391,9 +391,9 @@ namespace ShiftOS.Main case 83: case 84: textgeninput.Text = textgeninput.Text + "C:/Shiftum42/HDAccess.sft"; - fs = File.Create("C:/ShiftOS/Shiftum42/HDAccess.sft"); + fs = File.Create("C:/ShiftOS-Rewind/Shiftum42/HDAccess.sft"); fs.Close(); - System.IO.StreamWriter objWriter = new System.IO.StreamWriter("C:/ShiftOS/Shiftum42/HDAccess.sft", false); + System.IO.StreamWriter objWriter = new System.IO.StreamWriter("C:/ShiftOS-Rewind/Shiftum42/HDAccess.sft", false); objWriter.Write(actualshiftversion); objWriter.Close(); break; @@ -403,7 +403,7 @@ namespace ShiftOS.Main case 88: case 89: textgeninput.Text = textgeninput.Text + "C:/Shiftum42/ShiftGUI.sft"; - fs = File.Create("C:/ShiftOS/Shiftum42/ShiftGUI.sft"); + fs = File.Create("C:/ShiftOS-Rewind/Shiftum42/ShiftGUI.sft"); fs.Close(); break; case 90: @@ -411,7 +411,7 @@ namespace ShiftOS.Main case 92: case 93: textgeninput.Text = textgeninput.Text + "C:/Shiftum42/SKernal.sft"; - fs = File.Create("C:/ShiftOS/Shiftum42/SKernal.sft"); + fs = File.Create("C:/ShiftOS-Rewind/Shiftum42/SKernal.sft"); fs.Close(); break; case 94: @@ -419,7 +419,7 @@ namespace ShiftOS.Main case 96: case 97: textgeninput.Text = textgeninput.Text + "C:/Shiftum42/SRead.sft"; - fs = File.Create("C:/ShiftOS/Shiftum42/SRead.sft"); + fs = File.Create("C:/ShiftOS-Rewind/Shiftum42/SRead.sft"); fs.Close(); break; case 98: @@ -427,7 +427,7 @@ namespace ShiftOS.Main case 100: case 101: textgeninput.Text = textgeninput.Text + "C:/Shiftum42/SWrite.sft"; - fs = File.Create("C:/ShiftOS/Shiftum42/SWrite.sft"); + fs = File.Create("C:/ShiftOS-Rewind/Shiftum42/SWrite.sft"); fs.Close(); break; } @@ -442,15 +442,15 @@ namespace ShiftOS.Main case 232: textgeninput.Text = rtext + "100%" + Environment.NewLine + Environment.NewLine + "ShiftOS Installation Complete!"; PlaySound(Properties.Resources.typesound); - if ((!System.IO.Directory.Exists("C:/ShiftOS/SoftwareData/"))) - System.IO.Directory.CreateDirectory("C:/ShiftOS/SoftwareData/"); - if ((!System.IO.Directory.Exists("C:/ShiftOS/SoftwareData/KnowledgeInput"))) - System.IO.Directory.CreateDirectory("C:/ShiftOS/SoftwareData/KnowledgeInput"); - fs = File.Create("C:/ShiftOS/SoftwareData/KnowledgeInput/Animals.lst"); + if ((!System.IO.Directory.Exists("C:/ShiftOS-Rewind/SoftwareData/"))) + System.IO.Directory.CreateDirectory("C:/ShiftOS-Rewind/SoftwareData/"); + if ((!System.IO.Directory.Exists("C:/ShiftOS-Rewind/SoftwareData/KnowledgeInput"))) + System.IO.Directory.CreateDirectory("C:/ShiftOS-Rewind/SoftwareData/KnowledgeInput"); + fs = File.Create("C:/ShiftOS-Rewind/SoftwareData/KnowledgeInput/Animals.lst"); fs.Close(); - fs = File.Create("C:/ShiftOS/SoftwareData/KnowledgeInput/Fruits.lst"); + fs = File.Create("C:/ShiftOS-Rewind/SoftwareData/KnowledgeInput/Fruits.lst"); fs.Close(); - fs = File.Create("C:/ShiftOS/SoftwareData/KnowledgeInput/Countries.lst"); + fs = File.Create("C:/ShiftOS-Rewind/SoftwareData/KnowledgeInput/Countries.lst"); fs.Close(); break; case 234: |
