From 4b491f62801fb619b1471864706e2ec4c4620e0b Mon Sep 17 00:00:00 2001 From: clowwindy Date: Mon, 14 Jan 2013 18:53:41 +0800 Subject: [PATCH] fix layout --- shadowsocks-csharp/Form1.Designer.cs | 47 +++++++--------------------- 1 file changed, 12 insertions(+), 35 deletions(-) diff --git a/shadowsocks-csharp/Form1.Designer.cs b/shadowsocks-csharp/Form1.Designer.cs index 497895da..31b165e1 100755 --- a/shadowsocks-csharp/Form1.Designer.cs +++ b/shadowsocks-csharp/Form1.Designer.cs @@ -42,14 +42,12 @@ this.panel1 = new System.Windows.Forms.Panel(); this.button2 = new System.Windows.Forms.Button(); this.button1 = new System.Windows.Forms.Button(); - this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components); this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); this.ConfigItem = new System.Windows.Forms.ToolStripMenuItem(); this.QuitItem = new System.Windows.Forms.ToolStripMenuItem(); this.tableLayoutPanel1.SuspendLayout(); this.panel1.SuspendLayout(); - this.tableLayoutPanel2.SuspendLayout(); this.contextMenuStrip1.SuspendLayout(); this.SuspendLayout(); // @@ -77,7 +75,7 @@ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); - this.tableLayoutPanel1.Size = new System.Drawing.Size(256, 104); + this.tableLayoutPanel1.Size = new System.Drawing.Size(196, 104); this.tableLayoutPanel1.TabIndex = 0; // // label1 @@ -125,7 +123,7 @@ this.textBox1.Anchor = System.Windows.Forms.AnchorStyles.Left; this.textBox1.Location = new System.Drawing.Point(69, 3); this.textBox1.Name = "textBox1"; - this.textBox1.Size = new System.Drawing.Size(184, 20); + this.textBox1.Size = new System.Drawing.Size(124, 20); this.textBox1.TabIndex = 4; this.textBox1.WordWrap = false; // @@ -134,7 +132,7 @@ this.textBox2.Anchor = System.Windows.Forms.AnchorStyles.Left; this.textBox2.Location = new System.Drawing.Point(69, 29); this.textBox2.Name = "textBox2"; - this.textBox2.Size = new System.Drawing.Size(184, 20); + this.textBox2.Size = new System.Drawing.Size(124, 20); this.textBox2.TabIndex = 5; this.textBox2.WordWrap = false; // @@ -143,7 +141,7 @@ this.textBox3.Anchor = System.Windows.Forms.AnchorStyles.Left; this.textBox3.Location = new System.Drawing.Point(69, 55); this.textBox3.Name = "textBox3"; - this.textBox3.Size = new System.Drawing.Size(184, 20); + this.textBox3.Size = new System.Drawing.Size(124, 20); this.textBox3.TabIndex = 6; this.textBox3.WordWrap = false; // @@ -152,19 +150,18 @@ this.textBox4.Anchor = System.Windows.Forms.AnchorStyles.Left; this.textBox4.Location = new System.Drawing.Point(69, 81); this.textBox4.Name = "textBox4"; - this.textBox4.Size = new System.Drawing.Size(184, 20); + this.textBox4.Size = new System.Drawing.Size(124, 20); this.textBox4.TabIndex = 7; this.textBox4.WordWrap = false; // // panel1 // - this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); + this.panel1.Anchor = System.Windows.Forms.AnchorStyles.Top; this.panel1.AutoSize = true; this.panel1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.panel1.Controls.Add(this.button2); this.panel1.Controls.Add(this.button1); - this.panel1.Location = new System.Drawing.Point(51, 3); + this.panel1.Location = new System.Drawing.Point(59, 128); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(164, 30); this.panel1.TabIndex = 1; @@ -191,24 +188,6 @@ this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.button1_Click); // - // tableLayoutPanel2 - // - this.tableLayoutPanel2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.tableLayoutPanel2.AutoSize = true; - this.tableLayoutPanel2.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.tableLayoutPanel2.ColumnCount = 3; - this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); - this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); - this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); - this.tableLayoutPanel2.Controls.Add(this.panel1, 1, 0); - this.tableLayoutPanel2.Location = new System.Drawing.Point(12, 122); - this.tableLayoutPanel2.Name = "tableLayoutPanel2"; - this.tableLayoutPanel2.RowCount = 1; - this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle()); - this.tableLayoutPanel2.Size = new System.Drawing.Size(266, 36); - this.tableLayoutPanel2.TabIndex = 3; - // // notifyIcon1 // this.notifyIcon1.ContextMenuStrip = this.contextMenuStrip1; @@ -229,14 +208,14 @@ // ConfigItem // this.ConfigItem.Name = "ConfigItem"; - this.ConfigItem.Size = new System.Drawing.Size(127, 22); + this.ConfigItem.Size = new System.Drawing.Size(85, 22); this.ConfigItem.Text = "Config"; this.ConfigItem.Click += new System.EventHandler(this.Config_Click); // // QuitItem // this.QuitItem.Name = "QuitItem"; - this.QuitItem.Size = new System.Drawing.Size(127, 22); + this.QuitItem.Size = new System.Drawing.Size(85, 22); this.QuitItem.Text = "Quit"; this.QuitItem.Click += new System.EventHandler(this.Quit_Click); // @@ -248,17 +227,16 @@ this.AutoSize = true; this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.CancelButton = this.button2; - this.ClientSize = new System.Drawing.Size(291, 206); - this.Controls.Add(this.tableLayoutPanel2); + this.ClientSize = new System.Drawing.Size(282, 206); this.Controls.Add(this.tableLayoutPanel1); + this.Controls.Add(this.panel1); this.Name = "Form1"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Shadowsocks"; this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.Form1_FormClosed); this.tableLayoutPanel1.ResumeLayout(false); this.tableLayoutPanel1.PerformLayout(); this.panel1.ResumeLayout(false); - this.tableLayoutPanel2.ResumeLayout(false); - this.tableLayoutPanel2.PerformLayout(); this.contextMenuStrip1.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); @@ -279,7 +257,6 @@ private System.Windows.Forms.Panel panel1; private System.Windows.Forms.Button button2; private System.Windows.Forms.Button button1; - private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2; private System.Windows.Forms.NotifyIcon notifyIcon1; private System.Windows.Forms.ContextMenuStrip contextMenuStrip1; private System.Windows.Forms.ToolStripMenuItem ConfigItem;