diff --git a/SeewoHelper/Forms/KeywordEditWindow.Designer.cs b/SeewoHelper/Forms/KeywordEditWindow.Designer.cs
new file mode 100644
index 0000000..c62214b
--- /dev/null
+++ b/SeewoHelper/Forms/KeywordEditWindow.Designer.cs
@@ -0,0 +1,185 @@
+
+namespace SeewoHelper.Forms
+{
+ partial class KeywordWindow
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ this.listView1 = new System.Windows.Forms.ListView();
+ this.tableLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
+ this.tableLayoutPanelButton = new System.Windows.Forms.TableLayoutPanel();
+ this.buttonOK = new System.Windows.Forms.Button();
+ this.buttonCancel = new System.Windows.Forms.Button();
+ this.buttonAdd = new System.Windows.Forms.Button();
+ this.buttonDelete = new System.Windows.Forms.Button();
+ this.buttonEdit = new System.Windows.Forms.Button();
+ this.tableLayoutPanel.SuspendLayout();
+ this.tableLayoutPanelButton.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // listView1
+ //
+ this.listView1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)));
+ this.listView1.HideSelection = false;
+ this.listView1.Location = new System.Drawing.Point(12, 12);
+ this.listView1.Name = "listView1";
+ this.listView1.Size = new System.Drawing.Size(385, 457);
+ this.listView1.TabIndex = 0;
+ this.listView1.UseCompatibleStateImageBehavior = false;
+ //
+ // tableLayoutPanel
+ //
+ this.tableLayoutPanel.ColumnCount = 1;
+ this.tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
+ this.tableLayoutPanel.Controls.Add(this.buttonDelete, 0, 1);
+ this.tableLayoutPanel.Controls.Add(this.buttonEdit, 0, 2);
+ this.tableLayoutPanel.Controls.Add(this.buttonAdd, 0, 0);
+ this.tableLayoutPanel.Location = new System.Drawing.Point(403, 12);
+ this.tableLayoutPanel.Name = "tableLayoutPanel";
+ this.tableLayoutPanel.RowCount = 3;
+ this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
+ this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
+ this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
+ this.tableLayoutPanel.Size = new System.Drawing.Size(90, 130);
+ this.tableLayoutPanel.TabIndex = 1;
+ //
+ // tableLayoutPanelButton
+ //
+ this.tableLayoutPanelButton.ColumnCount = 2;
+ this.tableLayoutPanelButton.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanelButton.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanelButton.Controls.Add(this.buttonOK, 0, 0);
+ this.tableLayoutPanelButton.Controls.Add(this.buttonCancel, 1, 0);
+ this.tableLayoutPanelButton.Location = new System.Drawing.Point(308, 475);
+ this.tableLayoutPanelButton.Name = "tableLayoutPanelButton";
+ this.tableLayoutPanelButton.RowCount = 1;
+ this.tableLayoutPanelButton.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanelButton.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 44F));
+ this.tableLayoutPanelButton.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 44F));
+ this.tableLayoutPanelButton.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 44F));
+ this.tableLayoutPanelButton.Size = new System.Drawing.Size(184, 34);
+ this.tableLayoutPanelButton.TabIndex = 3;
+ //
+ // buttonOK
+ //
+ this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.buttonOK.Font = new System.Drawing.Font("微软雅黑", 9.5F);
+ this.buttonOK.Location = new System.Drawing.Point(3, 3);
+ this.buttonOK.Name = "buttonOK";
+ this.buttonOK.Size = new System.Drawing.Size(86, 28);
+ this.buttonOK.TabIndex = 0;
+ this.buttonOK.Text = "确定";
+ this.buttonOK.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
+ this.buttonOK.UseVisualStyleBackColor = true;
+ this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click);
+ //
+ // buttonCancel
+ //
+ this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
+ this.buttonCancel.Font = new System.Drawing.Font("微软雅黑", 9.5F);
+ this.buttonCancel.Location = new System.Drawing.Point(95, 3);
+ this.buttonCancel.Name = "buttonCancel";
+ this.buttonCancel.Size = new System.Drawing.Size(86, 28);
+ this.buttonCancel.TabIndex = 1;
+ this.buttonCancel.Text = "取消";
+ this.buttonCancel.UseVisualStyleBackColor = true;
+ this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click);
+ //
+ // buttonAdd
+ //
+ this.buttonAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
+ this.buttonAdd.Font = new System.Drawing.Font("微软雅黑", 9.5F);
+ this.buttonAdd.Location = new System.Drawing.Point(3, 6);
+ this.buttonAdd.Name = "buttonAdd";
+ this.buttonAdd.Size = new System.Drawing.Size(84, 30);
+ this.buttonAdd.TabIndex = 0;
+ this.buttonAdd.Text = "新建";
+ this.buttonAdd.UseVisualStyleBackColor = true;
+ //
+ // buttonDelete
+ //
+ this.buttonDelete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
+ this.buttonDelete.Font = new System.Drawing.Font("微软雅黑", 9.5F);
+ this.buttonDelete.Location = new System.Drawing.Point(3, 49);
+ this.buttonDelete.Name = "buttonDelete";
+ this.buttonDelete.Size = new System.Drawing.Size(84, 30);
+ this.buttonDelete.TabIndex = 1;
+ this.buttonDelete.Text = "删除";
+ this.buttonDelete.UseVisualStyleBackColor = true;
+ //
+ // buttonEdit
+ //
+ this.buttonEdit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
+ this.buttonEdit.Font = new System.Drawing.Font("微软雅黑", 9.5F);
+ this.buttonEdit.Location = new System.Drawing.Point(3, 93);
+ this.buttonEdit.Name = "buttonEdit";
+ this.buttonEdit.Size = new System.Drawing.Size(84, 30);
+ this.buttonEdit.TabIndex = 2;
+ this.buttonEdit.Text = "编辑";
+ this.buttonEdit.UseVisualStyleBackColor = true;
+ //
+ // KeywordWindow
+ //
+ this.AcceptButton = this.buttonOK;
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.CancelButton = this.buttonCancel;
+ this.ClientSize = new System.Drawing.Size(504, 521);
+ this.Controls.Add(this.tableLayoutPanelButton);
+ this.Controls.Add(this.tableLayoutPanel);
+ this.Controls.Add(this.listView1);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
+ this.MaximizeBox = false;
+ this.MinimizeBox = false;
+ this.Name = "KeywordWindow";
+ this.ShowIcon = false;
+ this.Text = "编辑关键词";
+ this.tableLayoutPanel.ResumeLayout(false);
+ this.tableLayoutPanelButton.ResumeLayout(false);
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.ListView listView1;
+ private System.Windows.Forms.TableLayoutPanel tableLayoutPanel;
+ private System.Windows.Forms.TableLayoutPanel tableLayoutPanelButton;
+ private System.Windows.Forms.Button buttonOK;
+ private System.Windows.Forms.Button buttonCancel;
+ private System.Windows.Forms.Button buttonDelete;
+ private System.Windows.Forms.Button buttonEdit;
+ private System.Windows.Forms.Button buttonAdd;
+ }
+}
\ No newline at end of file
diff --git a/SeewoHelper/Forms/KeywordEditWindow.cs b/SeewoHelper/Forms/KeywordEditWindow.cs
new file mode 100644
index 0000000..eb08435
--- /dev/null
+++ b/SeewoHelper/Forms/KeywordEditWindow.cs
@@ -0,0 +1,30 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace SeewoHelper.Forms
+{
+ public partial class KeywordWindow : Form
+ {
+ public KeywordWindow()
+ {
+ InitializeComponent();
+ }
+
+ private void buttonOK_Click(object sender, EventArgs e)
+ {
+ Close();
+ }
+
+ private void buttonCancel_Click(object sender, EventArgs e)
+ {
+ Close();
+ }
+ }
+}
diff --git a/SeewoHelper/Forms/KeywordEditWindow.resx b/SeewoHelper/Forms/KeywordEditWindow.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/SeewoHelper/Forms/KeywordEditWindow.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/SeewoHelper/Forms/SubjectStorageInfoGettingWindow.Designer.cs b/SeewoHelper/Forms/SubjectStorageInfoGettingWindow.Designer.cs
index 3590b57..eeb87ca 100644
--- a/SeewoHelper/Forms/SubjectStorageInfoGettingWindow.Designer.cs
+++ b/SeewoHelper/Forms/SubjectStorageInfoGettingWindow.Designer.cs
@@ -39,6 +39,7 @@ private void InitializeComponent()
this.textBoxPath = new System.Windows.Forms.TextBox();
this.textBoxKeywords = new System.Windows.Forms.TextBox();
this.buttonGettingPath = new System.Windows.Forms.Button();
+ this.buttonEditKeyword = new System.Windows.Forms.Button();
this.tableLayoutPanelButton.SuspendLayout();
this.SuspendLayout();
//
@@ -102,7 +103,7 @@ private void InitializeComponent()
//
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.Location = new System.Drawing.Point(13, 59);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(68, 17);
this.label2.TabIndex = 7;
@@ -112,7 +113,7 @@ private void InitializeComponent()
//
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.Location = new System.Drawing.Point(13, 98);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(56, 17);
this.label3.TabIndex = 8;
@@ -129,26 +130,36 @@ private void InitializeComponent()
//
this.textBoxPath.Location = new System.Drawing.Point(91, 58);
this.textBoxPath.Name = "textBoxPath";
- this.textBoxPath.Size = new System.Drawing.Size(692, 21);
+ this.textBoxPath.Size = new System.Drawing.Size(652, 21);
this.textBoxPath.TabIndex = 10;
//
// textBoxKeywords
//
this.textBoxKeywords.Location = new System.Drawing.Point(91, 94);
this.textBoxKeywords.Name = "textBoxKeywords";
- this.textBoxKeywords.Size = new System.Drawing.Size(692, 21);
+ this.textBoxKeywords.Size = new System.Drawing.Size(653, 21);
this.textBoxKeywords.TabIndex = 11;
//
// buttonGettingPath
//
- this.buttonGettingPath.Location = new System.Drawing.Point(749, 58);
+ this.buttonGettingPath.Location = new System.Drawing.Point(747, 58);
this.buttonGettingPath.Name = "buttonGettingPath";
- this.buttonGettingPath.Size = new System.Drawing.Size(33, 20);
+ this.buttonGettingPath.Size = new System.Drawing.Size(36, 21);
this.buttonGettingPath.TabIndex = 12;
this.buttonGettingPath.Text = "...";
this.buttonGettingPath.UseVisualStyleBackColor = true;
this.buttonGettingPath.Click += new System.EventHandler(this.ButtonGettingPath_Click);
//
+ // buttonEditKeyword
+ //
+ this.buttonEditKeyword.Location = new System.Drawing.Point(747, 94);
+ this.buttonEditKeyword.Name = "buttonEditKeyword";
+ this.buttonEditKeyword.Size = new System.Drawing.Size(36, 21);
+ this.buttonEditKeyword.TabIndex = 13;
+ this.buttonEditKeyword.Text = "🖊";
+ this.buttonEditKeyword.UseVisualStyleBackColor = true;
+ this.buttonEditKeyword.Click += new System.EventHandler(this.ButtonEditKeyword_Click);
+ //
// SubjectStorageInfoGettingWindow
//
this.AcceptButton = this.buttonOK;
@@ -156,6 +167,7 @@ private void InitializeComponent()
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.buttonCancel;
this.ClientSize = new System.Drawing.Size(795, 183);
+ this.Controls.Add(this.buttonEditKeyword);
this.Controls.Add(this.buttonGettingPath);
this.Controls.Add(this.label1);
this.Controls.Add(this.label2);
@@ -184,5 +196,6 @@ private void InitializeComponent()
private System.Windows.Forms.TextBox textBoxPath;
private System.Windows.Forms.TextBox textBoxKeywords;
private System.Windows.Forms.Button buttonGettingPath;
+ private System.Windows.Forms.Button buttonEditKeyword;
}
}
\ No newline at end of file
diff --git a/SeewoHelper/Forms/SubjectStorageInfoGettingWindow.cs b/SeewoHelper/Forms/SubjectStorageInfoGettingWindow.cs
index addca5a..c606b04 100644
--- a/SeewoHelper/Forms/SubjectStorageInfoGettingWindow.cs
+++ b/SeewoHelper/Forms/SubjectStorageInfoGettingWindow.cs
@@ -19,7 +19,6 @@ public static SubjectStorageInfo GetInfo()
{
var form = new SubjectStorageInfoGettingWindow();
form.ShowDialog();
-
return form._subjectStorageInfo;
}
@@ -31,9 +30,7 @@ private void ButtonGettingPath_Click(object sender, EventArgs e)
private void ButtonOK_Click(object sender, EventArgs e)
{
if (StringUtilities.IsNullOrWhiteSpace(textBoxName.Text, textBoxPath.Text, textBoxKeywords.Text))
- {
MessageBox.Show("请输入内容!");
- }
else
{
_subjectStorageInfo = new SubjectStorageInfo(textBoxName.Text, textBoxPath.Text, textBoxKeywords.Text.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries).Where(x => !string.IsNullOrWhiteSpace(x)).Select(x => x.Trim()).ToList());
@@ -45,5 +42,10 @@ private void ButtonCancel_Click(object sender, EventArgs e)
{
Close();
}
+
+ private void ButtonEditKeyword_Click(object sender, EventArgs e)
+ {
+ new KeywordWindow().ShowDialog();
+ }
}
}
diff --git a/SeewoHelper/SeewoHelper.csproj b/SeewoHelper/SeewoHelper.csproj
index 32f7f0d..e23273b 100644
--- a/SeewoHelper/SeewoHelper.csproj
+++ b/SeewoHelper/SeewoHelper.csproj
@@ -55,6 +55,12 @@
AboutWindow.cs
+
+ Form
+
+
+ KeywordWindow.cs
+
Form
@@ -82,6 +88,9 @@
AboutWindow.cs
+
+ KeywordWindow.cs
+
SubjectStorageInfoGettingWindow.cs