From 87276961ecb8b440dd8b7018913e09876a3e0022 Mon Sep 17 00:00:00 2001 From: Alee14 Date: Sun, 13 May 2018 18:37:02 -0400 Subject: Added the terminal --- Project Ports/Desktop.Designer.cs | 22 +++++-- Project Ports/Desktop.cs | 6 ++ Project Ports/Project Ports.csproj | 9 +++ Project Ports/Terminal.Designer.cs | 63 +++++++++++++++++++ Project Ports/Terminal.cs | 20 +++++++ Project Ports/Terminal.resx | 120 +++++++++++++++++++++++++++++++++++++ 6 files changed, 234 insertions(+), 6 deletions(-) create mode 100644 Project Ports/Terminal.Designer.cs create mode 100644 Project Ports/Terminal.cs create mode 100644 Project Ports/Terminal.resx 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 @@ + + Form + + + Terminal.cs + About.cs @@ -92,6 +98,9 @@ True Resources.resx + + Terminal.cs + SettingsSingleFileGenerator Settings.Designer.cs 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 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + 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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file -- cgit v1.2.3