From fd55f877eb291be721a0947b2d31c3dda105a864 Mon Sep 17 00:00:00 2001 From: Alee14 Date: Sat, 1 Sep 2018 12:20:33 -0400 Subject: Settings changed --- Project Ports/Programs/Settings.Designer.cs | 51 +++++++++++++++-------------- Project Ports/Programs/Settings.cs | 6 ++++ 2 files changed, 33 insertions(+), 24 deletions(-) (limited to 'Project Ports/Programs') diff --git a/Project Ports/Programs/Settings.Designer.cs b/Project Ports/Programs/Settings.Designer.cs index 714ef48..cb5f936 100644 --- a/Project Ports/Programs/Settings.Designer.cs +++ b/Project Ports/Programs/Settings.Designer.cs @@ -28,46 +28,50 @@ /// private void InitializeComponent() { - this.button1 = new System.Windows.Forms.Button(); this.label1 = new System.Windows.Forms.Label(); - this.label2 = new System.Windows.Forms.Label(); + this.txtSetUsername = new System.Windows.Forms.TextBox(); + this.btnSetUsername = new System.Windows.Forms.Button(); this.SuspendLayout(); // - // button1 - // - this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.button1.Location = new System.Drawing.Point(16, 70); - this.button1.Name = "button1"; - this.button1.Size = new System.Drawing.Size(75, 64); - this.button1.TabIndex = 0; - this.button1.UseVisualStyleBackColor = true; - // // label1 // this.label1.AutoSize = true; this.label1.Font = new System.Drawing.Font("Segoe UI", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label1.Location = new System.Drawing.Point(10, 9); + this.label1.ForeColor = System.Drawing.Color.White; + this.label1.Location = new System.Drawing.Point(19, 13); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(107, 32); this.label1.TabIndex = 1; this.label1.Text = "Settings"; // - // label2 + // txtSetUsername + // + this.txtSetUsername.Location = new System.Drawing.Point(25, 65); + this.txtSetUsername.Multiline = true; + this.txtSetUsername.Name = "txtSetUsername"; + this.txtSetUsername.Size = new System.Drawing.Size(163, 23); + this.txtSetUsername.TabIndex = 2; // - this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(31, 140); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(46, 13); - this.label2.TabIndex = 2; - this.label2.Text = "Setting1"; + // btnSetUsername + // + this.btnSetUsername.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnSetUsername.Location = new System.Drawing.Point(204, 65); + this.btnSetUsername.Name = "btnSetUsername"; + this.btnSetUsername.Size = new System.Drawing.Size(107, 23); + this.btnSetUsername.TabIndex = 3; + this.btnSetUsername.Text = "Set Username"; + this.btnSetUsername.UseVisualStyleBackColor = true; + this.btnSetUsername.Click += new System.EventHandler(this.btnSetUsername_Click); // // Settings // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(this.label2); + this.BackColor = System.Drawing.Color.Black; + this.Controls.Add(this.btnSetUsername); + this.Controls.Add(this.txtSetUsername); this.Controls.Add(this.label1); - this.Controls.Add(this.button1); + this.ForeColor = System.Drawing.Color.White; this.Name = "Settings"; this.Size = new System.Drawing.Size(664, 523); this.ResumeLayout(false); @@ -76,9 +80,8 @@ } #endregion - - private System.Windows.Forms.Button button1; private System.Windows.Forms.Label label1; - private System.Windows.Forms.Label label2; + private System.Windows.Forms.TextBox txtSetUsername; + private System.Windows.Forms.Button btnSetUsername; } } diff --git a/Project Ports/Programs/Settings.cs b/Project Ports/Programs/Settings.cs index 60ba626..a122db4 100644 --- a/Project Ports/Programs/Settings.cs +++ b/Project Ports/Programs/Settings.cs @@ -26,6 +26,7 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; +using PortEngine; namespace Project_Ports { @@ -35,5 +36,10 @@ namespace Project_Ports { InitializeComponent(); } + + private void btnSetUsername_Click(object sender, EventArgs e) + { + + } } } -- cgit v1.2.3