From cb9965e6d0b6169937bb6e7daf2514a5e509fd0f Mon Sep 17 00:00:00 2001 From: Alee14 Date: Sun, 20 May 2018 00:13:37 -0400 Subject: great.... it did nothing --- Project Ports/DebugMode.Designer.cs | 38 +---------- Project Ports/Desktop.Designer.cs | 24 +++++-- Project Ports/Desktop.cs | 6 ++ Project Ports/Project Ports.csproj | 9 +++ Project Ports/Terminal.Designer.cs | 1 + Project Ports/Terminal.cs | 7 +- Project Ports/TestWindow.Designer.cs | 69 ++++++++++++++++++++ Project Ports/TestWindow.cs | 26 ++++++++ Project Ports/TestWindow.resx | 120 +++++++++++++++++++++++++++++++++++ 9 files changed, 254 insertions(+), 46 deletions(-) create mode 100644 Project Ports/TestWindow.Designer.cs create mode 100644 Project Ports/TestWindow.cs create mode 100644 Project Ports/TestWindow.resx (limited to 'Project Ports') diff --git a/Project Ports/DebugMode.Designer.cs b/Project Ports/DebugMode.Designer.cs index ed2163c..27a4398 100644 --- a/Project Ports/DebugMode.Designer.cs +++ b/Project Ports/DebugMode.Designer.cs @@ -28,56 +28,20 @@ /// private void InitializeComponent() { - this.textBox1 = new System.Windows.Forms.TextBox(); - this.button1 = new System.Windows.Forms.Button(); - this.textBox2 = new System.Windows.Forms.TextBox(); this.SuspendLayout(); // - // textBox1 - // - this.textBox1.Location = new System.Drawing.Point(12, 12); - this.textBox1.Multiline = true; - this.textBox1.Name = "textBox1"; - this.textBox1.Size = new System.Drawing.Size(506, 368); - this.textBox1.TabIndex = 0; - // - // button1 - // - this.button1.Location = new System.Drawing.Point(441, 397); - this.button1.Name = "button1"; - this.button1.Size = new System.Drawing.Size(75, 120); - this.button1.TabIndex = 1; - this.button1.Text = "button1"; - this.button1.UseVisualStyleBackColor = true; - // - // textBox2 - // - this.textBox2.Location = new System.Drawing.Point(12, 397); - this.textBox2.Multiline = true; - this.textBox2.Name = "textBox2"; - this.textBox2.Size = new System.Drawing.Size(423, 120); - this.textBox2.TabIndex = 2; - // // DebugMode // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(530, 529); - this.Controls.Add(this.textBox2); - this.Controls.Add(this.button1); - this.Controls.Add(this.textBox1); + this.ClientSize = new System.Drawing.Size(405, 312); this.Name = "DebugMode"; this.Text = "DebugMode"; this.Load += new System.EventHandler(this.DebugMode_Load); this.ResumeLayout(false); - this.PerformLayout(); } #endregion - - private System.Windows.Forms.TextBox textBox1; - private System.Windows.Forms.Button button1; - private System.Windows.Forms.TextBox textBox2; } } \ No newline at end of file diff --git a/Project Ports/Desktop.Designer.cs b/Project Ports/Desktop.Designer.cs index 7455470..697f1d5 100644 --- a/Project Ports/Desktop.Designer.cs +++ b/Project Ports/Desktop.Designer.cs @@ -39,6 +39,7 @@ this.shutdownToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.ltime = new System.Windows.Forms.Label(); this.dclock = new System.Windows.Forms.Timer(this.components); + this.testWindowToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.appMenu.SuspendLayout(); this.SuspendLayout(); // @@ -70,39 +71,40 @@ // this.programsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.noProgramsToolStripMenuItem, - this.terminalToolStripMenuItem}); + this.terminalToolStripMenuItem, + this.testWindowToolStripMenuItem}); 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 :("; // // terminalToolStripMenuItem // this.terminalToolStripMenuItem.Name = "terminalToolStripMenuItem"; - this.terminalToolStripMenuItem.Size = new System.Drawing.Size(156, 22); + this.terminalToolStripMenuItem.Size = new System.Drawing.Size(180, 22); this.terminalToolStripMenuItem.Text = "Terminal"; this.terminalToolStripMenuItem.Click += new System.EventHandler(this.terminalToolStripMenuItem_Click); // // 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); // @@ -123,6 +125,13 @@ // this.dclock.Tick += new System.EventHandler(this.dclock_Tick); // + // testWindowToolStripMenuItem + // + this.testWindowToolStripMenuItem.Name = "testWindowToolStripMenuItem"; + this.testWindowToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.testWindowToolStripMenuItem.Text = "TestWindow"; + this.testWindowToolStripMenuItem.Click += new System.EventHandler(this.testWindowToolStripMenuItem_Click); + // // Desktop // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -157,5 +166,6 @@ private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; private System.Windows.Forms.ToolStripMenuItem terminalToolStripMenuItem; private System.Windows.Forms.Timer dclock; + private System.Windows.Forms.ToolStripMenuItem testWindowToolStripMenuItem; } } \ No newline at end of file diff --git a/Project Ports/Desktop.cs b/Project Ports/Desktop.cs index a02a0e8..06e121f 100644 --- a/Project Ports/Desktop.cs +++ b/Project Ports/Desktop.cs @@ -65,5 +65,11 @@ namespace Project_Ports Terminal terminalForm = new Terminal(); terminalForm.Show(); } + + private void testWindowToolStripMenuItem_Click(object sender, EventArgs e) + { + TestWindow testForm = new TestWindow(); + testForm.Show(); + } } } diff --git a/Project Ports/Project Ports.csproj b/Project Ports/Project Ports.csproj index e1da9e0..0ceef20 100644 --- a/Project Ports/Project Ports.csproj +++ b/Project Ports/Project Ports.csproj @@ -80,6 +80,12 @@ Terminal.cs + + UserControl + + + TestWindow.cs + About.cs @@ -104,6 +110,9 @@ Terminal.cs + + TestWindow.cs + SettingsSingleFileGenerator Settings.Designer.cs diff --git a/Project Ports/Terminal.Designer.cs b/Project Ports/Terminal.Designer.cs index 9da4629..48e3ee4 100644 --- a/Project Ports/Terminal.Designer.cs +++ b/Project Ports/Terminal.Designer.cs @@ -54,6 +54,7 @@ this.Controls.Add(this.textBox1); this.Name = "Terminal"; this.Size = new System.Drawing.Size(456, 337); + this.Load += new System.EventHandler(this.Terminal_Load); this.ResumeLayout(false); this.PerformLayout(); diff --git a/Project Ports/Terminal.cs b/Project Ports/Terminal.cs index e955a27..c878c32 100644 --- a/Project Ports/Terminal.cs +++ b/Project Ports/Terminal.cs @@ -17,8 +17,11 @@ namespace Project_Ports public Terminal() { InitializeComponent(); + } + + private void Terminal_Load(object sender, EventArgs e) + { + WindowManager wm = new WindowManager(); } - WindowManager wm = new PortEngine.WindowManager(); - } } diff --git a/Project Ports/TestWindow.Designer.cs b/Project Ports/TestWindow.Designer.cs new file mode 100644 index 0000000..e95c631 --- /dev/null +++ b/Project Ports/TestWindow.Designer.cs @@ -0,0 +1,69 @@ +namespace Project_Ports +{ + partial class TestWindow + { + /// + /// 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 Component Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.button1 = new System.Windows.Forms.Button(); + this.progressBar1 = new System.Windows.Forms.ProgressBar(); + this.SuspendLayout(); + // + // button1 + // + this.button1.Location = new System.Drawing.Point(24, 35); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(75, 23); + this.button1.TabIndex = 0; + this.button1.Text = "button1"; + this.button1.UseVisualStyleBackColor = true; + // + // progressBar1 + // + this.progressBar1.Location = new System.Drawing.Point(24, 77); + this.progressBar1.Name = "progressBar1"; + this.progressBar1.Size = new System.Drawing.Size(100, 23); + this.progressBar1.TabIndex = 1; + // + // TestWindow + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.progressBar1); + this.Controls.Add(this.button1); + this.Name = "TestWindow"; + this.Size = new System.Drawing.Size(459, 380); + this.Load += new System.EventHandler(this.TestWindow_Load); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Button button1; + private System.Windows.Forms.ProgressBar progressBar1; + } +} diff --git a/Project Ports/TestWindow.cs b/Project Ports/TestWindow.cs new file mode 100644 index 0000000..acbaacc --- /dev/null +++ b/Project Ports/TestWindow.cs @@ -0,0 +1,26 @@ +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; +using PortEngine; + +namespace Project_Ports +{ + public partial class TestWindow : UserControl + { + public TestWindow() + { + InitializeComponent(); + } + + private void TestWindow_Load(object sender, EventArgs e) + { + WindowManager wm = new WindowManager(); + } + } +} diff --git a/Project Ports/TestWindow.resx b/Project Ports/TestWindow.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/Project Ports/TestWindow.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