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 // 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..6ea4736 100644 --- a/SeewoHelper/Forms/WindowMain.cs +++ b/SeewoHelper/Forms/WindowMain.cs @@ -35,12 +35,12 @@ 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); } } - 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;