ui design work (incomplete)

This commit is contained in:
Chenx221 2023-10-05 23:20:26 +08:00
parent aebdc68bce
commit e9c6a26f39
2 changed files with 715 additions and 2 deletions

View File

@ -61,11 +61,75 @@
label5 = new Label();
tabPage5 = new TabPage();
label1 = new Label();
groupBox3 = new GroupBox();
richTextBox1 = new RichTextBox();
label7 = new Label();
button10 = new Button();
label8 = new Label();
groupBox4 = new GroupBox();
button11 = new Button();
groupBox5 = new GroupBox();
label9 = new Label();
textBox6 = new TextBox();
button12 = new Button();
button13 = new Button();
button14 = new Button();
comboBox1 = new ComboBox();
label10 = new Label();
checkBox5 = new CheckBox();
checkBox6 = new CheckBox();
label11 = new Label();
label12 = new Label();
checkBox7 = new CheckBox();
checkBox8 = new CheckBox();
richTextBox2 = new RichTextBox();
button15 = new Button();
button16 = new Button();
label13 = new Label();
textBox7 = new TextBox();
button17 = new Button();
groupBox6 = new GroupBox();
label14 = new Label();
label15 = new Label();
label16 = new Label();
label17 = new Label();
splitContainer1 = new SplitContainer();
label18 = new Label();
label19 = new Label();
label20 = new Label();
label21 = new Label();
label22 = new Label();
label23 = new Label();
label24 = new Label();
label25 = new Label();
label26 = new Label();
label27 = new Label();
label28 = new Label();
label29 = new Label();
label30 = new Label();
label31 = new Label();
checkBox9 = new CheckBox();
checkBox10 = new CheckBox();
checkBox11 = new CheckBox();
checkBox12 = new CheckBox();
groupBox7 = new GroupBox();
button18 = new Button();
tabControl1.SuspendLayout();
tabPage1.SuspendLayout();
tabPage2.SuspendLayout();
groupBox2.SuspendLayout();
groupBox1.SuspendLayout();
tabPage3.SuspendLayout();
tabPage4.SuspendLayout();
groupBox3.SuspendLayout();
groupBox4.SuspendLayout();
groupBox5.SuspendLayout();
groupBox6.SuspendLayout();
((System.ComponentModel.ISupportInitialize)splitContainer1).BeginInit();
splitContainer1.Panel1.SuspendLayout();
splitContainer1.Panel2.SuspendLayout();
splitContainer1.SuspendLayout();
groupBox7.SuspendLayout();
SuspendLayout();
//
// tabControl1
@ -84,12 +148,24 @@
//
// tabPage1
//
tabPage1.Controls.Add(label12);
tabPage1.Controls.Add(label11);
tabPage1.Controls.Add(label10);
tabPage1.Controls.Add(comboBox1);
tabPage1.Controls.Add(button14);
tabPage1.Controls.Add(button13);
tabPage1.Controls.Add(button12);
tabPage1.Controls.Add(textBox6);
tabPage1.Controls.Add(label9);
tabPage1.Controls.Add(groupBox5);
tabPage1.Controls.Add(groupBox4);
tabPage1.Controls.Add(groupBox3);
tabPage1.Location = new Point(4, 24);
tabPage1.Name = "tabPage1";
tabPage1.Padding = new Padding(3);
tabPage1.Size = new Size(528, 396);
tabPage1.TabIndex = 0;
tabPage1.Text = "查询&修改";
tabPage1.Text = "查询&添加";
tabPage1.UseVisualStyleBackColor = true;
//
// tabPage2
@ -276,6 +352,14 @@
//
// tabPage3
//
tabPage3.Controls.Add(groupBox7);
tabPage3.Controls.Add(groupBox6);
tabPage3.Controls.Add(button17);
tabPage3.Controls.Add(textBox7);
tabPage3.Controls.Add(label13);
tabPage3.Controls.Add(button16);
tabPage3.Controls.Add(button15);
tabPage3.Controls.Add(richTextBox2);
tabPage3.Location = new Point(4, 24);
tabPage3.Name = "tabPage3";
tabPage3.Padding = new Padding(3);
@ -415,6 +499,549 @@
label1.TabIndex = 0;
label1.Text = "xlsx表格文件:";
//
// groupBox3
//
groupBox3.Controls.Add(richTextBox1);
groupBox3.Location = new Point(0, 256);
groupBox3.Name = "groupBox3";
groupBox3.Size = new Size(528, 140);
groupBox3.TabIndex = 0;
groupBox3.TabStop = false;
groupBox3.Text = "Log";
//
// richTextBox1
//
richTextBox1.BackColor = Color.FromArgb(224, 224, 224);
richTextBox1.BorderStyle = BorderStyle.None;
richTextBox1.Location = new Point(6, 19);
richTextBox1.Name = "richTextBox1";
richTextBox1.ReadOnly = true;
richTextBox1.Size = new Size(516, 112);
richTextBox1.TabIndex = 0;
richTextBox1.Text = "";
//
// label7
//
label7.AutoSize = true;
label7.Location = new Point(6, 19);
label7.Name = "label7";
label7.Size = new Size(36, 15);
label7.TabIndex = 1;
label7.Text = "状态:";
//
// button10
//
button10.Location = new Point(0, 49);
button10.Name = "button10";
button10.Size = new Size(102, 51);
button10.TabIndex = 2;
button10.Text = "开始";
button10.UseVisualStyleBackColor = true;
button10.Click += button10_Click;
//
// label8
//
label8.AutoSize = true;
label8.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point);
label8.Location = new Point(45, 19);
label8.Name = "label8";
label8.Size = new Size(77, 21);
label8.TabIndex = 3;
label8.Text = "Unknown";
//
// groupBox4
//
groupBox4.Controls.Add(button11);
groupBox4.Controls.Add(label7);
groupBox4.Controls.Add(button10);
groupBox4.Controls.Add(label8);
groupBox4.Location = new Point(322, 6);
groupBox4.Name = "groupBox4";
groupBox4.Size = new Size(200, 100);
groupBox4.TabIndex = 4;
groupBox4.TabStop = false;
groupBox4.Text = "数据库连接";
//
// button11
//
button11.Enabled = false;
button11.Location = new Point(98, 49);
button11.Name = "button11";
button11.Size = new Size(102, 51);
button11.TabIndex = 5;
button11.Text = "结束";
button11.UseVisualStyleBackColor = true;
//
// groupBox5
//
groupBox5.Controls.Add(checkBox8);
groupBox5.Controls.Add(checkBox7);
groupBox5.Controls.Add(checkBox6);
groupBox5.Controls.Add(checkBox5);
groupBox5.Location = new Point(322, 112);
groupBox5.Name = "groupBox5";
groupBox5.Size = new Size(200, 145);
groupBox5.TabIndex = 5;
groupBox5.TabStop = false;
groupBox5.Text = "选项";
//
// label9
//
label9.AutoSize = true;
label9.Location = new Point(6, 25);
label9.Name = "label9";
label9.Size = new Size(77, 15);
label9.TabIndex = 6;
label9.Text = "待查找/添加";
//
// textBox6
//
textBox6.Location = new Point(6, 43);
textBox6.Name = "textBox6";
textBox6.Size = new Size(281, 23);
textBox6.TabIndex = 7;
//
// button12
//
button12.Location = new Point(159, 142);
button12.Name = "button12";
button12.Size = new Size(157, 70);
button12.TabIndex = 8;
button12.Text = "查找";
button12.UseVisualStyleBackColor = true;
button12.Click += button12_Click;
//
// button13
//
button13.Enabled = false;
button13.Location = new Point(159, 218);
button13.Name = "button13";
button13.Size = new Size(157, 32);
button13.TabIndex = 9;
button13.Text = "添加";
button13.UseVisualStyleBackColor = true;
button13.Click += button13_Click;
//
// button14
//
button14.Location = new Point(293, 43);
button14.Name = "button14";
button14.Size = new Size(23, 23);
button14.TabIndex = 10;
button14.Text = "X";
button14.UseVisualStyleBackColor = true;
//
// comboBox1
//
comboBox1.FormattingEnabled = true;
comboBox1.Items.AddRange(new object[] { "H_RJ", "H_D", "H_VJ", "NonH_RJ" });
comboBox1.Location = new Point(6, 91);
comboBox1.Name = "comboBox1";
comboBox1.Size = new Size(121, 23);
comboBox1.TabIndex = 12;
//
// label10
//
label10.AutoSize = true;
label10.Location = new Point(6, 73);
label10.Name = "label10";
label10.Size = new Size(33, 15);
label10.TabIndex = 13;
label10.Text = "类别";
//
// checkBox5
//
checkBox5.AutoSize = true;
checkBox5.Location = new Point(6, 22);
checkBox5.Name = "checkBox5";
checkBox5.Size = new Size(156, 19);
checkBox5.TabIndex = 0;
checkBox5.Text = "查找后自动添加缺少项";
checkBox5.UseVisualStyleBackColor = true;
//
// checkBox6
//
checkBox6.AutoSize = true;
checkBox6.Location = new Point(6, 47);
checkBox6.Name = "checkBox6";
checkBox6.Size = new Size(174, 19);
checkBox6.TabIndex = 1;
checkBox6.Text = "添加后清空待查找/添加框";
checkBox6.UseVisualStyleBackColor = true;
//
// label11
//
label11.AutoSize = true;
label11.Location = new Point(6, 138);
label11.Name = "label11";
label11.Size = new Size(62, 15);
label11.TabIndex = 14;
label11.Text = "查找结果:";
//
// label12
//
label12.AutoSize = true;
label12.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point);
label12.Location = new Point(22, 165);
label12.Name = "label12";
label12.Size = new Size(61, 21);
label12.TabIndex = 15;
label12.Text = "label12";
//
// checkBox7
//
checkBox7.AutoSize = true;
checkBox7.Location = new Point(6, 72);
checkBox7.Name = "checkBox7";
checkBox7.Size = new Size(170, 19);
checkBox7.TabIndex = 2;
checkBox7.Text = "自动判断类别(仅支持H_*)";
checkBox7.UseVisualStyleBackColor = true;
//
// checkBox8
//
checkBox8.AutoSize = true;
checkBox8.Location = new Point(6, 97);
checkBox8.Name = "checkBox8";
checkBox8.Size = new Size(117, 19);
checkBox8.TabIndex = 3;
checkBox8.Text = "自动备份数据库";
checkBox8.UseVisualStyleBackColor = true;
//
// richTextBox2
//
richTextBox2.Location = new Point(6, 267);
richTextBox2.Name = "richTextBox2";
richTextBox2.Size = new Size(310, 123);
richTextBox2.TabIndex = 0;
richTextBox2.Text = "";
//
// button15
//
button15.Location = new Point(324, 267);
button15.Name = "button15";
button15.Size = new Size(53, 80);
button15.TabIndex = 1;
button15.Text = "保存日志";
button15.UseVisualStyleBackColor = true;
//
// button16
//
button16.Location = new Point(324, 353);
button16.Name = "button16";
button16.Size = new Size(53, 37);
button16.TabIndex = 2;
button16.Text = "清空";
button16.UseVisualStyleBackColor = true;
//
// label13
//
label13.AutoSize = true;
label13.Location = new Point(6, 13);
label13.Name = "label13";
label13.Size = new Size(140, 15);
label13.TabIndex = 3;
label13.Text = "本地资源文件所在盘符:";
//
// textBox7
//
textBox7.Location = new Point(152, 10);
textBox7.Name = "textBox7";
textBox7.Size = new Size(36, 23);
textBox7.TabIndex = 4;
//
// button17
//
button17.Location = new Point(206, 10);
button17.Name = "button17";
button17.Size = new Size(63, 23);
button17.TabIndex = 5;
button17.Text = "读取";
button17.UseVisualStyleBackColor = true;
//
// groupBox6
//
groupBox6.Controls.Add(splitContainer1);
groupBox6.Location = new Point(6, 39);
groupBox6.Name = "groupBox6";
groupBox6.Size = new Size(516, 152);
groupBox6.TabIndex = 6;
groupBox6.TabStop = false;
groupBox6.Text = "状态";
//
// label14
//
label14.AutoSize = true;
label14.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point);
label14.Location = new Point(11, 25);
label14.Name = "label14";
label14.Size = new Size(47, 21);
label14.TabIndex = 0;
label14.Text = "H_RJ:";
//
// label15
//
label15.AutoSize = true;
label15.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point);
label15.Location = new Point(11, 46);
label15.Name = "label15";
label15.Size = new Size(42, 21);
label15.TabIndex = 1;
label15.Text = "H_D:";
//
// label16
//
label16.AutoSize = true;
label16.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point);
label16.Location = new Point(11, 67);
label16.Name = "label16";
label16.Size = new Size(46, 21);
label16.TabIndex = 2;
label16.Text = "H_VJ:";
//
// label17
//
label17.AutoSize = true;
label17.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point);
label17.Location = new Point(11, 88);
label17.Name = "label17";
label17.Size = new Size(77, 21);
label17.TabIndex = 3;
label17.Text = "NonH_RJ:";
//
// splitContainer1
//
splitContainer1.Location = new Point(6, 22);
splitContainer1.Name = "splitContainer1";
//
// splitContainer1.Panel1
//
splitContainer1.Panel1.Controls.Add(label30);
splitContainer1.Panel1.Controls.Add(label21);
splitContainer1.Panel1.Controls.Add(label20);
splitContainer1.Panel1.Controls.Add(label19);
splitContainer1.Panel1.Controls.Add(label18);
splitContainer1.Panel1.Controls.Add(label17);
splitContainer1.Panel1.Controls.Add(label14);
splitContainer1.Panel1.Controls.Add(label16);
splitContainer1.Panel1.Controls.Add(label15);
//
// splitContainer1.Panel2
//
splitContainer1.Panel2.Controls.Add(label31);
splitContainer1.Panel2.Controls.Add(label29);
splitContainer1.Panel2.Controls.Add(label28);
splitContainer1.Panel2.Controls.Add(label27);
splitContainer1.Panel2.Controls.Add(label26);
splitContainer1.Panel2.Controls.Add(label25);
splitContainer1.Panel2.Controls.Add(label24);
splitContainer1.Panel2.Controls.Add(label23);
splitContainer1.Panel2.Controls.Add(label22);
splitContainer1.Size = new Size(504, 124);
splitContainer1.SplitterDistance = 241;
splitContainer1.TabIndex = 4;
//
// label18
//
label18.AutoSize = true;
label18.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point);
label18.Location = new Point(170, 25);
label18.Name = "label18";
label18.Size = new Size(61, 21);
label18.TabIndex = 4;
label18.Text = "label18";
//
// label19
//
label19.AutoSize = true;
label19.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point);
label19.Location = new Point(170, 46);
label19.Name = "label19";
label19.Size = new Size(61, 21);
label19.TabIndex = 5;
label19.Text = "label19";
//
// label20
//
label20.AutoSize = true;
label20.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point);
label20.Location = new Point(170, 67);
label20.Name = "label20";
label20.Size = new Size(61, 21);
label20.TabIndex = 6;
label20.Text = "label20";
//
// label21
//
label21.AutoSize = true;
label21.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point);
label21.Location = new Point(170, 88);
label21.Name = "label21";
label21.Size = new Size(61, 21);
label21.TabIndex = 7;
label21.Text = "label21";
//
// label22
//
label22.AutoSize = true;
label22.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point);
label22.Location = new Point(12, 25);
label22.Name = "label22";
label22.Size = new Size(47, 21);
label22.TabIndex = 0;
label22.Text = "H_RJ:";
//
// label23
//
label23.AutoSize = true;
label23.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point);
label23.Location = new Point(12, 46);
label23.Name = "label23";
label23.Size = new Size(42, 21);
label23.TabIndex = 1;
label23.Text = "H_D:";
//
// label24
//
label24.AutoSize = true;
label24.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point);
label24.Location = new Point(12, 67);
label24.Name = "label24";
label24.Size = new Size(46, 21);
label24.TabIndex = 2;
label24.Text = "H_VJ:";
//
// label25
//
label25.AutoSize = true;
label25.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point);
label25.Location = new Point(12, 88);
label25.Name = "label25";
label25.Size = new Size(77, 21);
label25.TabIndex = 3;
label25.Text = "NonH_RJ:";
//
// label26
//
label26.AutoSize = true;
label26.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point);
label26.Location = new Point(181, 25);
label26.Name = "label26";
label26.Size = new Size(61, 21);
label26.TabIndex = 4;
label26.Text = "label26";
//
// label27
//
label27.AutoSize = true;
label27.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point);
label27.Location = new Point(181, 46);
label27.Name = "label27";
label27.Size = new Size(61, 21);
label27.TabIndex = 5;
label27.Text = "label27";
//
// label28
//
label28.AutoSize = true;
label28.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point);
label28.Location = new Point(181, 67);
label28.Name = "label28";
label28.Size = new Size(61, 21);
label28.TabIndex = 6;
label28.Text = "label28";
//
// label29
//
label29.AutoSize = true;
label29.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point);
label29.Location = new Point(181, 88);
label29.Name = "label29";
label29.Size = new Size(61, 21);
label29.TabIndex = 7;
label29.Text = "label29";
//
// label30
//
label30.AutoSize = true;
label30.Location = new Point(101, 0);
label30.Name = "label30";
label30.Size = new Size(33, 15);
label30.TabIndex = 8;
label30.Text = "本地";
//
// label31
//
label31.AutoSize = true;
label31.Location = new Point(110, 0);
label31.Name = "label31";
label31.Size = new Size(46, 15);
label31.TabIndex = 8;
label31.Text = "数据库";
//
// checkBox9
//
checkBox9.AutoSize = true;
checkBox9.Location = new Point(17, 22);
checkBox9.Name = "checkBox9";
checkBox9.Size = new Size(83, 19);
checkBox9.TabIndex = 7;
checkBox9.Text = "checkBox9";
checkBox9.UseVisualStyleBackColor = true;
//
// checkBox10
//
checkBox10.AutoSize = true;
checkBox10.Location = new Point(117, 22);
checkBox10.Name = "checkBox10";
checkBox10.Size = new Size(89, 19);
checkBox10.TabIndex = 8;
checkBox10.Text = "checkBox10";
checkBox10.UseVisualStyleBackColor = true;
//
// checkBox11
//
checkBox11.AutoSize = true;
checkBox11.Location = new Point(218, 22);
checkBox11.Name = "checkBox11";
checkBox11.Size = new Size(89, 19);
checkBox11.TabIndex = 9;
checkBox11.Text = "checkBox11";
checkBox11.UseVisualStyleBackColor = true;
//
// checkBox12
//
checkBox12.AutoSize = true;
checkBox12.Location = new Point(318, 22);
checkBox12.Name = "checkBox12";
checkBox12.Size = new Size(89, 19);
checkBox12.TabIndex = 10;
checkBox12.Text = "checkBox12";
checkBox12.UseVisualStyleBackColor = true;
//
// groupBox7
//
groupBox7.Controls.Add(button18);
groupBox7.Controls.Add(checkBox11);
groupBox7.Controls.Add(checkBox12);
groupBox7.Controls.Add(checkBox9);
groupBox7.Controls.Add(checkBox10);
groupBox7.Location = new Point(6, 197);
groupBox7.Name = "groupBox7";
groupBox7.Size = new Size(516, 64);
groupBox7.TabIndex = 11;
groupBox7.TabStop = false;
groupBox7.Text = "比较";
//
// button18
//
button18.Location = new Point(432, 18);
button18.Name = "button18";
button18.Size = new Size(75, 40);
button18.TabIndex = 11;
button18.Text = "button18";
button18.UseVisualStyleBackColor = true;
//
// Form1
//
AutoScaleDimensions = new SizeF(7F, 15F);
@ -424,12 +1051,30 @@
Name = "Form1";
Text = "AsmrManage";
tabControl1.ResumeLayout(false);
tabPage1.ResumeLayout(false);
tabPage1.PerformLayout();
tabPage2.ResumeLayout(false);
groupBox2.ResumeLayout(false);
groupBox1.ResumeLayout(false);
groupBox1.PerformLayout();
tabPage3.ResumeLayout(false);
tabPage3.PerformLayout();
tabPage4.ResumeLayout(false);
tabPage4.PerformLayout();
groupBox3.ResumeLayout(false);
groupBox4.ResumeLayout(false);
groupBox4.PerformLayout();
groupBox5.ResumeLayout(false);
groupBox5.PerformLayout();
groupBox6.ResumeLayout(false);
splitContainer1.Panel1.ResumeLayout(false);
splitContainer1.Panel1.PerformLayout();
splitContainer1.Panel2.ResumeLayout(false);
splitContainer1.Panel2.PerformLayout();
((System.ComponentModel.ISupportInitialize)splitContainer1).EndInit();
splitContainer1.ResumeLayout(false);
groupBox7.ResumeLayout(false);
groupBox7.PerformLayout();
ResumeLayout(false);
}
@ -468,5 +1113,58 @@
private Button button9;
private Button button8;
private Button button7;
private GroupBox groupBox3;
private RichTextBox richTextBox1;
private Button button10;
private Label label7;
private GroupBox groupBox4;
private Button button11;
private Label label8;
private Button button13;
private Button button12;
private TextBox textBox6;
private Label label9;
private GroupBox groupBox5;
private Label label10;
private ComboBox comboBox1;
private Button button14;
private CheckBox checkBox6;
private CheckBox checkBox5;
private Label label12;
private Label label11;
private CheckBox checkBox8;
private CheckBox checkBox7;
private Button button17;
private TextBox textBox7;
private Label label13;
private Button button16;
private Button button15;
private RichTextBox richTextBox2;
private GroupBox groupBox6;
private SplitContainer splitContainer1;
private Label label18;
private Label label17;
private Label label14;
private Label label16;
private Label label15;
private Label label30;
private Label label21;
private Label label20;
private Label label19;
private Label label31;
private Label label29;
private Label label28;
private Label label27;
private Label label26;
private Label label25;
private Label label24;
private Label label23;
private Label label22;
private GroupBox groupBox7;
private Button button18;
private CheckBox checkBox11;
private CheckBox checkBox12;
private CheckBox checkBox9;
private CheckBox checkBox10;
}
}

View File

@ -273,7 +273,7 @@ namespace AsmrManage
private void button6_Click(object sender, EventArgs e)
{
if(Program.config == null) { Program.config = ConfigManager.LoadConfig(); }
if (Program.config == null) { Program.config = ConfigManager.LoadConfig(); }
string db_path = Program.config.DatabaseFilePath;
string dbb_path = Program.config.DBBrowserPath;
//检查路径是否存在
@ -299,5 +299,20 @@ namespace AsmrManage
MessageBox.Show("指定路径不存在。请检查路径是否正确。", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
private void button10_Click(object sender, EventArgs e)
{
}
private void button13_Click(object sender, EventArgs e)
{
}
private void button12_Click(object sender, EventArgs e)
{
}
}
}