From 904a6589b0df0b78119825e97508cd5fdbf5bfc6 Mon Sep 17 00:00:00 2001 From: Ricky8955555 <397050061@qq.com> Date: Sun, 6 Dec 2020 15:38:08 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20LabelBox=20=E5=AD=97?= =?UTF-8?q?=E4=BD=93=EF=BC=8C=E4=BF=AE=E6=AD=A3=E9=83=A8=E5=88=86=E5=91=BD?= =?UTF-8?q?=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ubjectStorageInfoGettingWindow.Designer.cs | 9 +++-- SeewoHelper/Forms/WindowMain.Designer.cs | 40 +++++++++---------- SeewoHelper/Forms/WindowMain.cs | 2 +- 3 files changed, 27 insertions(+), 24 deletions(-) diff --git a/SeewoHelper/Forms/SubjectStorageInfoGettingWindow.Designer.cs b/SeewoHelper/Forms/SubjectStorageInfoGettingWindow.Designer.cs index 9eede61..3590b57 100644 --- a/SeewoHelper/Forms/SubjectStorageInfoGettingWindow.Designer.cs +++ b/SeewoHelper/Forms/SubjectStorageInfoGettingWindow.Designer.cs @@ -91,27 +91,30 @@ private void InitializeComponent() // label1 // this.label1.AutoSize = true; + this.label1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label1.Location = new System.Drawing.Point(13, 25); this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(65, 12); + this.label1.Size = new System.Drawing.Size(68, 17); this.label1.TabIndex = 6; this.label1.Text = "科目名称:"; // // label2 // this.label2.AutoSize = true; + this.label2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label2.Location = new System.Drawing.Point(13, 61); this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(65, 12); + this.label2.Size = new System.Drawing.Size(68, 17); this.label2.TabIndex = 7; this.label2.Text = "指定路径:"; // // label3 // this.label3.AutoSize = true; + this.label3.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label3.Location = new System.Drawing.Point(13, 97); this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(53, 12); + this.label3.Size = new System.Drawing.Size(56, 17); this.label3.TabIndex = 8; this.label3.Text = "关键词:"; // diff --git a/SeewoHelper/Forms/WindowMain.Designer.cs b/SeewoHelper/Forms/WindowMain.Designer.cs index a8da49d..dde13c9 100644 --- a/SeewoHelper/Forms/WindowMain.Designer.cs +++ b/SeewoHelper/Forms/WindowMain.Designer.cs @@ -36,9 +36,9 @@ private void InitializeComponent() this.AboutMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.tabPage1 = new System.Windows.Forms.TabPage(); this.listViewSubjectStorageInfos = new System.Windows.Forms.ListView(); - this.columnHeaderName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); - this.columnHeaderPath = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); - this.columnHeaderKeywords = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.listViewSubjectStorageInfosColumnHeaderName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.listViewSubjectStorageInfosColumnHeaderPath = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.listViewSubjectStorageInfosColumnHeaderKeywords = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.tableLayoutPanelSubjectStorageInfoListControlButtons = new System.Windows.Forms.TableLayoutPanel(); this.buttonSubjectStorageInfoAdd = new System.Windows.Forms.Button(); this.buttonSubjectInfoStorageRemove = new System.Windows.Forms.Button(); @@ -71,7 +71,7 @@ private void InitializeComponent() // SettingMenuItem // this.SettingMenuItem.Name = "SettingMenuItem"; - this.SettingMenuItem.Size = new System.Drawing.Size(100, 22); + this.SettingMenuItem.Size = new System.Drawing.Size(180, 22); this.SettingMenuItem.Text = "选项"; // // HelpMenuItem @@ -114,9 +114,9 @@ private void InitializeComponent() this.listViewSubjectStorageInfos.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.listViewSubjectStorageInfos.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { - this.columnHeaderName, - this.columnHeaderPath, - this.columnHeaderKeywords}); + this.listViewSubjectStorageInfosColumnHeaderName, + this.listViewSubjectStorageInfosColumnHeaderPath, + this.listViewSubjectStorageInfosColumnHeaderKeywords}); this.listViewSubjectStorageInfos.FullRowSelect = true; this.listViewSubjectStorageInfos.HideSelection = false; this.listViewSubjectStorageInfos.Location = new System.Drawing.Point(7, 6); @@ -125,22 +125,22 @@ private void InitializeComponent() this.listViewSubjectStorageInfos.TabIndex = 2; this.listViewSubjectStorageInfos.UseCompatibleStateImageBehavior = false; this.listViewSubjectStorageInfos.View = System.Windows.Forms.View.Details; - this.listViewSubjectStorageInfos.ColumnWidthChanging += new System.Windows.Forms.ColumnWidthChangingEventHandler(this.listViewSubjectStorageInfos_ColumnWidthChanging); + this.listViewSubjectStorageInfos.ColumnWidthChanging += new System.Windows.Forms.ColumnWidthChangingEventHandler(this.ListViewSubjectStorageInfos_ColumnWidthChanging); // - // columnHeaderName + // listViewSubjectStorageInfosColumnHeaderName // - this.columnHeaderName.Text = "名称"; - this.columnHeaderName.Width = 55; + this.listViewSubjectStorageInfosColumnHeaderName.Text = "名称"; + this.listViewSubjectStorageInfosColumnHeaderName.Width = 55; // - // columnHeaderPath + // listViewSubjectStorageInfosColumnHeaderPath // - this.columnHeaderPath.Text = "路径"; - this.columnHeaderPath.Width = 400; + this.listViewSubjectStorageInfosColumnHeaderPath.Text = "路径"; + this.listViewSubjectStorageInfosColumnHeaderPath.Width = 400; // - // columnHeaderKeywords + // listViewSubjectStorageInfosColumnHeaderKeywords // - this.columnHeaderKeywords.Text = "关键词"; - this.columnHeaderKeywords.Width = 300; + this.listViewSubjectStorageInfosColumnHeaderKeywords.Text = "关键词"; + this.listViewSubjectStorageInfosColumnHeaderKeywords.Width = 300; // // tableLayoutPanelSubjectStorageInfoListControlButtons // @@ -235,9 +235,9 @@ private void InitializeComponent() private System.Windows.Forms.Button buttonSubjectStorageInfoAdd; private System.Windows.Forms.Button buttonSubjectInfoStorageRemove; private System.Windows.Forms.ListView listViewSubjectStorageInfos; - private System.Windows.Forms.ColumnHeader columnHeaderName; - private System.Windows.Forms.ColumnHeader columnHeaderPath; - private System.Windows.Forms.ColumnHeader columnHeaderKeywords; + private System.Windows.Forms.ColumnHeader listViewSubjectStorageInfosColumnHeaderName; + private System.Windows.Forms.ColumnHeader listViewSubjectStorageInfosColumnHeaderPath; + private System.Windows.Forms.ColumnHeader listViewSubjectStorageInfosColumnHeaderKeywords; } } diff --git a/SeewoHelper/Forms/WindowMain.cs b/SeewoHelper/Forms/WindowMain.cs index 47a4c53..b6fb212 100644 --- a/SeewoHelper/Forms/WindowMain.cs +++ b/SeewoHelper/Forms/WindowMain.cs @@ -40,7 +40,7 @@ private void ButtonSubjectStorageInfoAdd_Click(object sender, EventArgs e) } } - private void listViewSubjectStorageInfos_ColumnWidthChanging(object sender, ColumnWidthChangingEventArgs e) + private void ListViewSubjectStorageInfos_ColumnWidthChanging(object sender, ColumnWidthChangingEventArgs e) { e.Cancel = true; e.NewWidth = listViewSubjectStorageInfos.Columns[e.ColumnIndex].Width; From cb86a3371829eda3cb3c7aba8d960b44ab88d6a0 Mon Sep 17 00:00:00 2001 From: Ricky8955555 <397050061@qq.com> Date: Sun, 6 Dec 2020 15:38:32 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SeewoHelper/Forms/AboutWindow.cs | 2 +- SeewoHelper/Forms/AboutWindow.designer.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SeewoHelper/Forms/AboutWindow.cs b/SeewoHelper/Forms/AboutWindow.cs index 5d73fc5..708ae4a 100644 --- a/SeewoHelper/Forms/AboutWindow.cs +++ b/SeewoHelper/Forms/AboutWindow.cs @@ -15,7 +15,7 @@ private void ButtonOK_Click(object sender, EventArgs e) this.Close(); } - private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) + private void LinkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { System.Diagnostics.Process.Start("https://github.com/Mo-Ink/SeewoHelper"); } diff --git a/SeewoHelper/Forms/AboutWindow.designer.cs b/SeewoHelper/Forms/AboutWindow.designer.cs index b641318..917b875 100644 --- a/SeewoHelper/Forms/AboutWindow.designer.cs +++ b/SeewoHelper/Forms/AboutWindow.designer.cs @@ -114,7 +114,7 @@ private void InitializeComponent() this.linkLabel1.TabStop = true; this.linkLabel1.Text = "Github"; this.linkLabel1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked); + this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LinkLabel1_LinkClicked); // // AboutWindow // From 1395359a5b19fdb4d00efcdf7a773d757f82db1d Mon Sep 17 00:00:00 2001 From: Ricky8955555 <397050061@qq.com> Date: Sat, 12 Dec 2020 12:49:54 +0800 Subject: [PATCH 3/3] =?UTF-8?q?WindowMain=20=E4=B8=AD=20listViewSubjectSto?= =?UTF-8?q?rageInfos=20=E5=9C=A8=E6=B7=BB=E5=8A=A0=20Item=20=E6=97=B6?= =?UTF-8?q?=E9=99=84=E5=8A=A0=20Tag?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SeewoHelper/Forms/WindowMain.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SeewoHelper/Forms/WindowMain.cs b/SeewoHelper/Forms/WindowMain.cs index b6fb212..6ea4736 100644 --- a/SeewoHelper/Forms/WindowMain.cs +++ b/SeewoHelper/Forms/WindowMain.cs @@ -35,7 +35,7 @@ private void ButtonSubjectStorageInfoAdd_Click(object sender, EventArgs e) if (info != null) { - var item = new ListViewItem(new string[] { info.Name, info.Path, string.Join(", ", info.Keywords) }); + var item = new ListViewItem(new string[] { info.Name, info.Path, string.Join(", ", info.Keywords) }) { Tag = info }; listViewSubjectStorageInfos.Items.Add(item); } }