From 8bc725827a2783392c98e1e287d6a058915dfbe0 Mon Sep 17 00:00:00 2001 From: qwqcode <1149527164@qq.com> Date: Wed, 26 Jun 2019 01:02:00 +0800 Subject: [PATCH] Modify UI Layout --- SubtitleRenamer/MainForm.Designer.cs | 40 +++++++++++++++++++--------- 1 file changed, 27 insertions(+), 13 deletions(-) diff --git a/SubtitleRenamer/MainForm.Designer.cs b/SubtitleRenamer/MainForm.Designer.cs index 6322ce8..065e65d 100644 --- a/SubtitleRenamer/MainForm.Designer.cs +++ b/SubtitleRenamer/MainForm.Designer.cs @@ -37,14 +37,16 @@ private void InitializeComponent() this.MainToolTip = new System.Windows.Forms.ToolTip(this.components); this.CopyrightText = new System.Windows.Forms.Label(); this.SettingBtn = new System.Windows.Forms.Button(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.groupBox1.SuspendLayout(); this.SuspendLayout(); // // PathSelBtn // this.PathSelBtn.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.PathSelBtn.Location = new System.Drawing.Point(563, 42); + this.PathSelBtn.Location = new System.Drawing.Point(17, 20); this.PathSelBtn.Name = "PathSelBtn"; - this.PathSelBtn.Size = new System.Drawing.Size(115, 25); + this.PathSelBtn.Size = new System.Drawing.Size(93, 25); this.PathSelBtn.TabIndex = 0; this.PathSelBtn.Text = "打开文件夹"; this.PathSelBtn.UseVisualStyleBackColor = true; @@ -53,10 +55,10 @@ private void InitializeComponent() // PathTextBox // this.PathTextBox.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.PathTextBox.Location = new System.Drawing.Point(156, 43); + this.PathTextBox.Location = new System.Drawing.Point(116, 21); this.PathTextBox.Name = "PathTextBox"; this.PathTextBox.ReadOnly = true; - this.PathTextBox.Size = new System.Drawing.Size(401, 23); + this.PathTextBox.Size = new System.Drawing.Size(312, 23); this.PathTextBox.TabIndex = 1; // // VideoFileListBox @@ -65,7 +67,7 @@ private void InitializeComponent() this.VideoFileListBox.FormattingEnabled = true; this.VideoFileListBox.HorizontalScrollbar = true; this.VideoFileListBox.ItemHeight = 17; - this.VideoFileListBox.Location = new System.Drawing.Point(349, 83); + this.VideoFileListBox.Location = new System.Drawing.Point(349, 78); this.VideoFileListBox.Name = "VideoFileListBox"; this.VideoFileListBox.Size = new System.Drawing.Size(330, 327); this.VideoFileListBox.TabIndex = 2; @@ -77,7 +79,7 @@ private void InitializeComponent() this.SubtitleFileListBox.FormattingEnabled = true; this.SubtitleFileListBox.HorizontalScrollbar = true; this.SubtitleFileListBox.ItemHeight = 17; - this.SubtitleFileListBox.Location = new System.Drawing.Point(13, 83); + this.SubtitleFileListBox.Location = new System.Drawing.Point(12, 78); this.SubtitleFileListBox.Name = "SubtitleFileListBox"; this.SubtitleFileListBox.Size = new System.Drawing.Size(330, 327); this.SubtitleFileListBox.TabIndex = 6; @@ -88,7 +90,7 @@ private void InitializeComponent() this.StartEasyBtn.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.StartEasyBtn.Location = new System.Drawing.Point(12, 12); this.StartEasyBtn.Name = "StartEasyBtn"; - this.StartEasyBtn.Size = new System.Drawing.Size(137, 55); + this.StartEasyBtn.Size = new System.Drawing.Size(122, 55); this.StartEasyBtn.TabIndex = 8; this.StartEasyBtn.Text = "一键改名"; this.StartEasyBtn.UseVisualStyleBackColor = true; @@ -101,7 +103,7 @@ private void InitializeComponent() this.CopyrightText.Cursor = System.Windows.Forms.Cursors.Hand; this.CopyrightText.Font = new System.Drawing.Font("微软雅黑", 8F); this.CopyrightText.ForeColor = System.Drawing.Color.DarkGray; - this.CopyrightText.Location = new System.Drawing.Point(590, 14); + this.CopyrightText.Location = new System.Drawing.Point(595, 45); this.CopyrightText.Name = "CopyrightText"; this.CopyrightText.Size = new System.Drawing.Size(87, 16); this.CopyrightText.TabIndex = 10; @@ -111,33 +113,44 @@ private void InitializeComponent() // SettingBtn // this.SettingBtn.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.SettingBtn.Location = new System.Drawing.Point(155, 12); + this.SettingBtn.Location = new System.Drawing.Point(598, 13); this.SettingBtn.Name = "SettingBtn"; - this.SettingBtn.Size = new System.Drawing.Size(81, 25); + this.SettingBtn.Size = new System.Drawing.Size(82, 23); this.SettingBtn.TabIndex = 13; this.SettingBtn.Text = "设置"; this.SettingBtn.UseVisualStyleBackColor = true; this.SettingBtn.Click += new System.EventHandler(this.SettingBtn_Click); // + // groupBox1 + // + this.groupBox1.Controls.Add(this.PathTextBox); + this.groupBox1.Controls.Add(this.PathSelBtn); + this.groupBox1.Location = new System.Drawing.Point(141, 6); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(448, 61); + this.groupBox1.TabIndex = 14; + this.groupBox1.TabStop = false; + // // MainForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.ClientSize = new System.Drawing.Size(692, 426); + this.ClientSize = new System.Drawing.Size(692, 417); + this.Controls.Add(this.groupBox1); this.Controls.Add(this.SettingBtn); this.Controls.Add(this.StartEasyBtn); this.Controls.Add(this.SubtitleFileListBox); this.Controls.Add(this.CopyrightText); this.Controls.Add(this.VideoFileListBox); - this.Controls.Add(this.PathTextBox); - this.Controls.Add(this.PathSelBtn); this.MaximizeBox = false; this.Name = "MainForm"; this.ShowIcon = false; this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "字幕文件批量重命名 - qwqaq.com"; + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); @@ -153,6 +166,7 @@ private void InitializeComponent() private System.Windows.Forms.ToolTip MainToolTip; private System.Windows.Forms.Label CopyrightText; private System.Windows.Forms.Button SettingBtn; + private System.Windows.Forms.GroupBox groupBox1; } }