diff options
| author | Alee14 <Alee14498@gmail.com> | 2018-05-13 18:37:02 -0400 |
|---|---|---|
| committer | Alee14 <Alee14498@gmail.com> | 2018-05-13 18:37:02 -0400 |
| commit | 87276961ecb8b440dd8b7018913e09876a3e0022 (patch) | |
| tree | 97f6f0e4f49401eebcbfea51540ae7c664560453 | |
| parent | 7920388957421dfcad53eed13454ffe227fdb803 (diff) | |
| download | Project-Silicon-87276961ecb8b440dd8b7018913e09876a3e0022.tar.gz Project-Silicon-87276961ecb8b440dd8b7018913e09876a3e0022.tar.bz2 Project-Silicon-87276961ecb8b440dd8b7018913e09876a3e0022.zip | |
Added the terminal
| -rw-r--r-- | Project Ports/Desktop.Designer.cs | 22 | ||||
| -rw-r--r-- | Project Ports/Desktop.cs | 6 | ||||
| -rw-r--r-- | Project Ports/Project Ports.csproj | 9 | ||||
| -rw-r--r-- | Project Ports/Terminal.Designer.cs | 63 | ||||
| -rw-r--r-- | Project Ports/Terminal.cs | 20 | ||||
| -rw-r--r-- | Project Ports/Terminal.resx | 120 |
6 files changed, 234 insertions, 6 deletions
diff --git a/Project Ports/Desktop.Designer.cs b/Project Ports/Desktop.Designer.cs index 73492dd..534cc50 100644 --- a/Project Ports/Desktop.Designer.cs +++ b/Project Ports/Desktop.Designer.cs @@ -36,6 +36,7 @@ this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); this.shutdownToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.ltime = new System.Windows.Forms.Label(); + this.terminalToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.appMenu.SuspendLayout(); this.SuspendLayout(); // @@ -66,32 +67,33 @@ // programsToolStripMenuItem // this.programsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.noProgramsToolStripMenuItem}); + this.noProgramsToolStripMenuItem, + this.terminalToolStripMenuItem}); this.programsToolStripMenuItem.Name = "programsToolStripMenuItem"; - this.programsToolStripMenuItem.Size = new System.Drawing.Size(131, 22); + this.programsToolStripMenuItem.Size = new System.Drawing.Size(180, 22); this.programsToolStripMenuItem.Text = "Programs"; // // noProgramsToolStripMenuItem // this.noProgramsToolStripMenuItem.Name = "noProgramsToolStripMenuItem"; - this.noProgramsToolStripMenuItem.Size = new System.Drawing.Size(156, 22); + this.noProgramsToolStripMenuItem.Size = new System.Drawing.Size(180, 22); this.noProgramsToolStripMenuItem.Text = "No programs :("; // // settingsToolStripMenuItem // this.settingsToolStripMenuItem.Name = "settingsToolStripMenuItem"; - this.settingsToolStripMenuItem.Size = new System.Drawing.Size(131, 22); + this.settingsToolStripMenuItem.Size = new System.Drawing.Size(180, 22); this.settingsToolStripMenuItem.Text = "Settings"; // // toolStripSeparator1 // this.toolStripSeparator1.Name = "toolStripSeparator1"; - this.toolStripSeparator1.Size = new System.Drawing.Size(128, 6); + this.toolStripSeparator1.Size = new System.Drawing.Size(177, 6); // // shutdownToolStripMenuItem // this.shutdownToolStripMenuItem.Name = "shutdownToolStripMenuItem"; - this.shutdownToolStripMenuItem.Size = new System.Drawing.Size(131, 22); + this.shutdownToolStripMenuItem.Size = new System.Drawing.Size(180, 22); this.shutdownToolStripMenuItem.Text = "Shutdown"; this.shutdownToolStripMenuItem.Click += new System.EventHandler(this.shutdownToolStripMenuItem_Click); // @@ -108,6 +110,13 @@ this.ltime.Text = "time"; this.ltime.Click += new System.EventHandler(this.label1_Click); // + // terminalToolStripMenuItem + // + this.terminalToolStripMenuItem.Name = "terminalToolStripMenuItem"; + this.terminalToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.terminalToolStripMenuItem.Text = "Terminal"; + this.terminalToolStripMenuItem.Click += new System.EventHandler(this.terminalToolStripMenuItem_Click); + // // Desktop // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -140,5 +149,6 @@ private System.Windows.Forms.ToolStripMenuItem settingsToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem shutdownToolStripMenuItem; private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; + private System.Windows.Forms.ToolStripMenuItem terminalToolStripMenuItem; } }
\ No newline at end of file diff --git a/Project Ports/Desktop.cs b/Project Ports/Desktop.cs index 3a85d1b..b5ab3e5 100644 --- a/Project Ports/Desktop.cs +++ b/Project Ports/Desktop.cs @@ -59,5 +59,11 @@ namespace Project_Ports { this.Close(); } + + private void terminalToolStripMenuItem_Click(object sender, EventArgs e) + { + Terminal terminalForm = new Terminal(); + terminalForm.Show(); + } } } diff --git a/Project Ports/Project Ports.csproj b/Project Ports/Project Ports.csproj index d88e10a..aa7085f 100644 --- a/Project Ports/Project Ports.csproj +++ b/Project Ports/Project Ports.csproj @@ -71,6 +71,12 @@ </Compile> <Compile Include="Program.cs" /> <Compile Include="Properties\AssemblyInfo.cs" /> + <Compile Include="Terminal.cs"> + <SubType>Form</SubType> + </Compile> + <Compile Include="Terminal.Designer.cs"> + <DependentUpon>Terminal.cs</DependentUpon> + </Compile> <EmbeddedResource Include="About.resx"> <DependentUpon>About.cs</DependentUpon> </EmbeddedResource> @@ -92,6 +98,9 @@ <AutoGen>True</AutoGen> <DependentUpon>Resources.resx</DependentUpon> </Compile> + <EmbeddedResource Include="Terminal.resx"> + <DependentUpon>Terminal.cs</DependentUpon> + </EmbeddedResource> <None Include="Properties\Settings.settings"> <Generator>SettingsSingleFileGenerator</Generator> <LastGenOutput>Settings.Designer.cs</LastGenOutput> diff --git a/Project Ports/Terminal.Designer.cs b/Project Ports/Terminal.Designer.cs new file mode 100644 index 0000000..74b0eac --- /dev/null +++ b/Project Ports/Terminal.Designer.cs @@ -0,0 +1,63 @@ +namespace Project_Ports +{ + partial class Terminal + { + /// <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.textBox1 = new System.Windows.Forms.TextBox(); + this.SuspendLayout(); + // + // textBox1 + // + this.textBox1.BackColor = System.Drawing.Color.Black; + this.textBox1.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.textBox1.Font = new System.Drawing.Font("Lucida Console", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBox1.ForeColor = System.Drawing.Color.White; + this.textBox1.Location = new System.Drawing.Point(1, 0); + this.textBox1.Multiline = true; + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(555, 320); + this.textBox1.TabIndex = 0; + // + // Terminal + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(558, 321); + this.Controls.Add(this.textBox1); + this.Name = "Terminal"; + this.Text = "Terminal"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.TextBox textBox1; + } +}
\ No newline at end of file diff --git a/Project Ports/Terminal.cs b/Project Ports/Terminal.cs new file mode 100644 index 0000000..ba51f3a --- /dev/null +++ b/Project Ports/Terminal.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 Project_Ports +{ + public partial class Terminal : Form + { + public Terminal() + { + InitializeComponent(); + } + } +} diff --git a/Project Ports/Terminal.resx b/Project Ports/Terminal.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/Project Ports/Terminal.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 |
