修改逻辑

This commit is contained in:
2025-03-13 19:27:31 +08:00
parent 7828ca663f
commit 9a330c01f8
5 changed files with 222 additions and 208 deletions

View File

@ -29,33 +29,34 @@
private void InitializeComponent()
{
panel1 = new Panel();
label1 = new AntdUI.Label();
tbxPrePath = new TextBox();
btnPreOpen = new AntdUI.Button();
label5 = new AntdUI.Label();
comboBox1 = new ComboBox();
label6 = new AntdUI.Label();
textBox1 = new TextBox();
label8 = new AntdUI.Label();
switch1 = new AntdUI.Switch();
label7 = new AntdUI.Label();
switch2 = new AntdUI.Switch();
label9 = new AntdUI.Label();
switch3 = new AntdUI.Switch();
label10 = new AntdUI.Label();
switch4 = new AntdUI.Switch();
button3 = new AntdUI.Button();
panel2 = new Panel();
label2 = new Label();
button2 = new AntdUI.Button();
table1 = new AntdUI.Table();
button1 = new AntdUI.Button();
button3 = new AntdUI.Button();
label10 = new AntdUI.Label();
switch4 = new AntdUI.Switch();
label9 = new AntdUI.Label();
switch3 = new AntdUI.Switch();
label7 = new AntdUI.Label();
switch2 = new AntdUI.Switch();
label8 = new AntdUI.Label();
switch1 = new AntdUI.Switch();
textBox1 = new TextBox();
label6 = new AntdUI.Label();
comboBox1 = new ComboBox();
label5 = new AntdUI.Label();
btnPreOpen = new AntdUI.Button();
tbxPrePath = new TextBox();
label1 = new AntdUI.Label();
panel1.SuspendLayout();
panel2.SuspendLayout();
SuspendLayout();
//
// panel1
//
panel1.BorderStyle = BorderStyle.FixedSingle;
panel1.Controls.Add(button3);
panel1.Controls.Add(panel2);
panel1.Controls.Add(label10);
@ -79,123 +80,13 @@
panel1.Size = new Size(785, 445);
panel1.TabIndex = 0;
//
// label1
// button3
//
label1.Location = new Point(17, 41);
label1.Name = "label1";
label1.Size = new Size(73, 23);
label1.TabIndex = 9;
label1.Text = "模型路径";
//
// tbxPrePath
//
tbxPrePath.Location = new Point(96, 41);
tbxPrePath.Name = "tbxPrePath";
tbxPrePath.Size = new Size(498, 23);
tbxPrePath.TabIndex = 17;
//
// btnPreOpen
//
btnPreOpen.Location = new Point(613, 41);
btnPreOpen.Name = "btnPreOpen";
btnPreOpen.Size = new Size(46, 23);
btnPreOpen.TabIndex = 22;
btnPreOpen.Text = "...";
//
// label5
//
label5.Location = new Point(333, 12);
label5.Name = "label5";
label5.Size = new Size(73, 23);
label5.TabIndex = 23;
label5.Text = "目标类型";
//
// comboBox1
//
comboBox1.FormattingEnabled = true;
comboBox1.Location = new Point(402, 10);
comboBox1.Name = "comboBox1";
comboBox1.Size = new Size(188, 25);
comboBox1.TabIndex = 24;
//
// label6
//
label6.Location = new Point(17, 12);
label6.Name = "label6";
label6.Size = new Size(58, 23);
label6.TabIndex = 25;
label6.Text = "检测名称";
//
// textBox1
//
textBox1.Location = new Point(96, 12);
textBox1.Name = "textBox1";
textBox1.Size = new Size(211, 23);
textBox1.TabIndex = 26;
//
// label8
//
label8.Location = new Point(17, 70);
label8.Name = "label8";
label8.Size = new Size(58, 23);
label8.TabIndex = 28;
label8.Text = "模型启用";
//
// switch1
//
switch1.Location = new Point(96, 70);
switch1.Name = "switch1";
switch1.Size = new Size(57, 23);
switch1.TabIndex = 27;
switch1.Text = "switch1";
//
// label7
//
label7.Location = new Point(179, 70);
label7.Name = "label7";
label7.Size = new Size(58, 23);
label7.TabIndex = 30;
label7.Text = "数据保存";
//
// switch2
//
switch2.Location = new Point(258, 70);
switch2.Name = "switch2";
switch2.Size = new Size(57, 23);
switch2.TabIndex = 29;
switch2.Text = "switch2";
//
// label9
//
label9.Location = new Point(333, 70);
label9.Name = "label9";
label9.Size = new Size(73, 23);
label9.TabIndex = 32;
label9.Text = "保存OK原图";
//
// switch3
//
switch3.Location = new Point(412, 70);
switch3.Name = "switch3";
switch3.Size = new Size(57, 23);
switch3.TabIndex = 31;
switch3.Text = "switch3";
//
// label10
//
label10.Location = new Point(487, 70);
label10.Name = "label10";
label10.Size = new Size(73, 23);
label10.TabIndex = 34;
label10.Text = "保存NG原图";
//
// switch4
//
switch4.Location = new Point(566, 70);
switch4.Name = "switch4";
switch4.Size = new Size(57, 23);
switch4.TabIndex = 33;
switch4.Text = "switch4";
button3.Location = new Point(472, 101);
button3.Name = "button3";
button3.Size = new Size(118, 34);
button3.TabIndex = 37;
button3.Text = "查看文件夹";
//
// panel2
//
@ -241,13 +132,123 @@
button1.TabIndex = 23;
button1.Text = "新增";
//
// button3
// label10
//
button3.Location = new Point(472, 101);
button3.Name = "button3";
button3.Size = new Size(118, 34);
button3.TabIndex = 37;
button3.Text = "查看文件夹";
label10.Location = new Point(487, 70);
label10.Name = "label10";
label10.Size = new Size(73, 23);
label10.TabIndex = 34;
label10.Text = "保存NG原图";
//
// switch4
//
switch4.Location = new Point(566, 70);
switch4.Name = "switch4";
switch4.Size = new Size(57, 23);
switch4.TabIndex = 33;
switch4.Text = "switch4";
//
// label9
//
label9.Location = new Point(333, 70);
label9.Name = "label9";
label9.Size = new Size(73, 23);
label9.TabIndex = 32;
label9.Text = "保存OK原图";
//
// switch3
//
switch3.Location = new Point(412, 70);
switch3.Name = "switch3";
switch3.Size = new Size(57, 23);
switch3.TabIndex = 31;
switch3.Text = "switch3";
//
// label7
//
label7.Location = new Point(179, 70);
label7.Name = "label7";
label7.Size = new Size(58, 23);
label7.TabIndex = 30;
label7.Text = "数据保存";
//
// switch2
//
switch2.Location = new Point(258, 70);
switch2.Name = "switch2";
switch2.Size = new Size(57, 23);
switch2.TabIndex = 29;
switch2.Text = "switch2";
//
// label8
//
label8.Location = new Point(17, 70);
label8.Name = "label8";
label8.Size = new Size(58, 23);
label8.TabIndex = 28;
label8.Text = "模型启用";
//
// switch1
//
switch1.Location = new Point(96, 70);
switch1.Name = "switch1";
switch1.Size = new Size(57, 23);
switch1.TabIndex = 27;
switch1.Text = "switch1";
//
// textBox1
//
textBox1.Location = new Point(96, 12);
textBox1.Name = "textBox1";
textBox1.Size = new Size(211, 23);
textBox1.TabIndex = 26;
//
// label6
//
label6.Location = new Point(17, 12);
label6.Name = "label6";
label6.Size = new Size(58, 23);
label6.TabIndex = 25;
label6.Text = "检测名称";
//
// comboBox1
//
comboBox1.FormattingEnabled = true;
comboBox1.Location = new Point(402, 10);
comboBox1.Name = "comboBox1";
comboBox1.Size = new Size(188, 25);
comboBox1.TabIndex = 24;
//
// label5
//
label5.Location = new Point(333, 12);
label5.Name = "label5";
label5.Size = new Size(73, 23);
label5.TabIndex = 23;
label5.Text = "目标类型";
//
// btnPreOpen
//
btnPreOpen.Location = new Point(613, 41);
btnPreOpen.Name = "btnPreOpen";
btnPreOpen.Size = new Size(46, 23);
btnPreOpen.TabIndex = 22;
btnPreOpen.Text = "...";
//
// tbxPrePath
//
tbxPrePath.Location = new Point(96, 41);
tbxPrePath.Name = "tbxPrePath";
tbxPrePath.Size = new Size(498, 23);
tbxPrePath.TabIndex = 17;
//
// label1
//
label1.Location = new Point(17, 41);
label1.Name = "label1";
label1.Size = new Size(73, 23);
label1.TabIndex = 9;
label1.Text = "模型路径";
//
// DetectConfigControl
//