Commit 1c38d4d4 LN

1

1 个父辈 a0714c27
...@@ -63,7 +63,7 @@ namespace AOI ...@@ -63,7 +63,7 @@ namespace AOI
{ {
foreach(ResultBean resultBean in resultBeans) foreach(ResultBean resultBean in resultBeans)
{ {
Pen pen = new Pen(Color.YellowGreen,5); Pen pen = new Pen(Color.Lime,5);
if (!resultBean.result) if (!resultBean.result)
{ {
pen = new Pen(Color.Red,5); pen = new Pen(Color.Red,5);
......
...@@ -232,17 +232,24 @@ namespace AccAOI ...@@ -232,17 +232,24 @@ namespace AccAOI
private void ShowPorject() private void ShowPorject()
{ {
if (Project != null) if (Project != null)
{ {
CloseCurrAoi();
aoiList.ItemClear(); aoiList.ItemClear();
imageBox1.Image = Project.standardImage; imageBox1.Image = Project.standardImage;
imageBox1.SelectionRegion = new GraphicsPath(); imageBox1.SelectionRegion = new GraphicsPath();
if (Project.methodMap.Count > 0) if (Project.methodMap.Count > 0)
{ {
foreach(string key in Project.methodMap.Keys) int index = 0;
foreach (string key in Project.methodMap.Keys)
{ {
aoiList.ItemAdd(key); aoiList.ItemAdd(key);
if (index.Equals(0))
{
aoiList.Index = index;
ShowAoi(Project.methodMap[key]);
}
} }
aoiList.Index = 0;
} }
} }
} }
......
...@@ -139,10 +139,10 @@ ...@@ -139,10 +139,10 @@
// //
this.txtMaxR.Font = new System.Drawing.Font("宋体", 9F); this.txtMaxR.Font = new System.Drawing.Font("宋体", 9F);
this.txtMaxR.Inside = false; this.txtMaxR.Inside = false;
this.txtMaxR.Location = new System.Drawing.Point(62, 93); this.txtMaxR.Location = new System.Drawing.Point(59, 93);
this.txtMaxR.Name = "txtMaxR"; this.txtMaxR.Name = "txtMaxR";
this.txtMaxR.Padding = new System.Windows.Forms.Padding(3); this.txtMaxR.Padding = new System.Windows.Forms.Padding(3);
this.txtMaxR.Size = new System.Drawing.Size(74, 30); this.txtMaxR.Size = new System.Drawing.Size(41, 30);
this.txtMaxR.TabIndex = 26; this.txtMaxR.TabIndex = 26;
this.txtMaxR.Text = "255"; this.txtMaxR.Text = "255";
this.txtMaxR.TextChanged += new System.EventHandler(this.txtMinR_TextChanged); this.txtMaxR.TextChanged += new System.EventHandler(this.txtMinR_TextChanged);
...@@ -151,10 +151,10 @@ ...@@ -151,10 +151,10 @@
// //
this.txtMinR.Font = new System.Drawing.Font("宋体", 9F); this.txtMinR.Font = new System.Drawing.Font("宋体", 9F);
this.txtMinR.Inside = false; this.txtMinR.Inside = false;
this.txtMinR.Location = new System.Drawing.Point(62, 41); this.txtMinR.Location = new System.Drawing.Point(59, 41);
this.txtMinR.Name = "txtMinR"; this.txtMinR.Name = "txtMinR";
this.txtMinR.Padding = new System.Windows.Forms.Padding(3); this.txtMinR.Padding = new System.Windows.Forms.Padding(3);
this.txtMinR.Size = new System.Drawing.Size(74, 30); this.txtMinR.Size = new System.Drawing.Size(41, 30);
this.txtMinR.TabIndex = 25; this.txtMinR.TabIndex = 25;
this.txtMinR.Text = "0"; this.txtMinR.Text = "0";
this.txtMinR.TextChanged += new System.EventHandler(this.txtMinR_TextChanged); this.txtMinR.TextChanged += new System.EventHandler(this.txtMinR_TextChanged);
...@@ -181,10 +181,10 @@ ...@@ -181,10 +181,10 @@
// //
this.txtMaxG.Font = new System.Drawing.Font("宋体", 9F); this.txtMaxG.Font = new System.Drawing.Font("宋体", 9F);
this.txtMaxG.Inside = false; this.txtMaxG.Inside = false;
this.txtMaxG.Location = new System.Drawing.Point(62, 197); this.txtMaxG.Location = new System.Drawing.Point(59, 197);
this.txtMaxG.Name = "txtMaxG"; this.txtMaxG.Name = "txtMaxG";
this.txtMaxG.Padding = new System.Windows.Forms.Padding(3); this.txtMaxG.Padding = new System.Windows.Forms.Padding(3);
this.txtMaxG.Size = new System.Drawing.Size(74, 30); this.txtMaxG.Size = new System.Drawing.Size(41, 30);
this.txtMaxG.TabIndex = 30; this.txtMaxG.TabIndex = 30;
this.txtMaxG.Text = "255"; this.txtMaxG.Text = "255";
this.txtMaxG.TextChanged += new System.EventHandler(this.txtMinR_TextChanged); this.txtMaxG.TextChanged += new System.EventHandler(this.txtMinR_TextChanged);
...@@ -193,10 +193,10 @@ ...@@ -193,10 +193,10 @@
// //
this.txtMinG.Font = new System.Drawing.Font("宋体", 9F); this.txtMinG.Font = new System.Drawing.Font("宋体", 9F);
this.txtMinG.Inside = false; this.txtMinG.Inside = false;
this.txtMinG.Location = new System.Drawing.Point(62, 145); this.txtMinG.Location = new System.Drawing.Point(59, 145);
this.txtMinG.Name = "txtMinG"; this.txtMinG.Name = "txtMinG";
this.txtMinG.Padding = new System.Windows.Forms.Padding(3); this.txtMinG.Padding = new System.Windows.Forms.Padding(3);
this.txtMinG.Size = new System.Drawing.Size(74, 30); this.txtMinG.Size = new System.Drawing.Size(41, 30);
this.txtMinG.TabIndex = 29; this.txtMinG.TabIndex = 29;
this.txtMinG.Text = "0"; this.txtMinG.Text = "0";
this.txtMinG.TextChanged += new System.EventHandler(this.txtMinR_TextChanged); this.txtMinG.TextChanged += new System.EventHandler(this.txtMinR_TextChanged);
...@@ -224,10 +224,10 @@ ...@@ -224,10 +224,10 @@
// //
this.txtMaxB.Font = new System.Drawing.Font("宋体", 9F); this.txtMaxB.Font = new System.Drawing.Font("宋体", 9F);
this.txtMaxB.Inside = false; this.txtMaxB.Inside = false;
this.txtMaxB.Location = new System.Drawing.Point(62, 301); this.txtMaxB.Location = new System.Drawing.Point(59, 301);
this.txtMaxB.Name = "txtMaxB"; this.txtMaxB.Name = "txtMaxB";
this.txtMaxB.Padding = new System.Windows.Forms.Padding(3); this.txtMaxB.Padding = new System.Windows.Forms.Padding(3);
this.txtMaxB.Size = new System.Drawing.Size(74, 30); this.txtMaxB.Size = new System.Drawing.Size(41, 30);
this.txtMaxB.TabIndex = 34; this.txtMaxB.TabIndex = 34;
this.txtMaxB.Text = "255"; this.txtMaxB.Text = "255";
this.txtMaxB.TextChanged += new System.EventHandler(this.txtMinR_TextChanged); this.txtMaxB.TextChanged += new System.EventHandler(this.txtMinR_TextChanged);
...@@ -236,10 +236,10 @@ ...@@ -236,10 +236,10 @@
// //
this.txtMinB.Font = new System.Drawing.Font("宋体", 9F); this.txtMinB.Font = new System.Drawing.Font("宋体", 9F);
this.txtMinB.Inside = false; this.txtMinB.Inside = false;
this.txtMinB.Location = new System.Drawing.Point(62, 249); this.txtMinB.Location = new System.Drawing.Point(59, 249);
this.txtMinB.Name = "txtMinB"; this.txtMinB.Name = "txtMinB";
this.txtMinB.Padding = new System.Windows.Forms.Padding(3); this.txtMinB.Padding = new System.Windows.Forms.Padding(3);
this.txtMinB.Size = new System.Drawing.Size(74, 30); this.txtMinB.Size = new System.Drawing.Size(41, 30);
this.txtMinB.TabIndex = 33; this.txtMinB.TabIndex = 33;
this.txtMinB.Text = "0"; this.txtMinB.Text = "0";
this.txtMinB.TextChanged += new System.EventHandler(this.txtMinR_TextChanged); this.txtMinB.TextChanged += new System.EventHandler(this.txtMinR_TextChanged);
...@@ -288,10 +288,10 @@ ...@@ -288,10 +288,10 @@
// tbMinR // tbMinR
// //
this.tbMinR.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(30)))), ((int)(((byte)(30))))); this.tbMinR.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(30)))), ((int)(((byte)(30)))));
this.tbMinR.Location = new System.Drawing.Point(145, 41); this.tbMinR.Location = new System.Drawing.Point(107, 41);
this.tbMinR.Maximum = 255; this.tbMinR.Maximum = 255;
this.tbMinR.Name = "tbMinR"; this.tbMinR.Name = "tbMinR";
this.tbMinR.Size = new System.Drawing.Size(141, 45); this.tbMinR.Size = new System.Drawing.Size(179, 45);
this.tbMinR.TabIndex = 10; this.tbMinR.TabIndex = 10;
this.tbMinR.TickStyle = System.Windows.Forms.TickStyle.None; this.tbMinR.TickStyle = System.Windows.Forms.TickStyle.None;
this.tbMinR.ValueChanged += new System.EventHandler(this.tbMinR_ValueChanged); this.tbMinR.ValueChanged += new System.EventHandler(this.tbMinR_ValueChanged);
...@@ -299,10 +299,10 @@ ...@@ -299,10 +299,10 @@
// tbMaxR // tbMaxR
// //
this.tbMaxR.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(30)))), ((int)(((byte)(30))))); this.tbMaxR.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(30)))), ((int)(((byte)(30)))));
this.tbMaxR.Location = new System.Drawing.Point(145, 94); this.tbMaxR.Location = new System.Drawing.Point(107, 94);
this.tbMaxR.Maximum = 255; this.tbMaxR.Maximum = 255;
this.tbMaxR.Name = "tbMaxR"; this.tbMaxR.Name = "tbMaxR";
this.tbMaxR.Size = new System.Drawing.Size(141, 45); this.tbMaxR.Size = new System.Drawing.Size(179, 45);
this.tbMaxR.TabIndex = 28; this.tbMaxR.TabIndex = 28;
this.tbMaxR.TickStyle = System.Windows.Forms.TickStyle.None; this.tbMaxR.TickStyle = System.Windows.Forms.TickStyle.None;
this.tbMaxR.Value = 255; this.tbMaxR.Value = 255;
...@@ -311,10 +311,10 @@ ...@@ -311,10 +311,10 @@
// tbMaxG // tbMaxG
// //
this.tbMaxG.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(30)))), ((int)(((byte)(30))))); this.tbMaxG.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(30)))), ((int)(((byte)(30)))));
this.tbMaxG.Location = new System.Drawing.Point(145, 200); this.tbMaxG.Location = new System.Drawing.Point(107, 200);
this.tbMaxG.Maximum = 255; this.tbMaxG.Maximum = 255;
this.tbMaxG.Name = "tbMaxG"; this.tbMaxG.Name = "tbMaxG";
this.tbMaxG.Size = new System.Drawing.Size(141, 45); this.tbMaxG.Size = new System.Drawing.Size(179, 45);
this.tbMaxG.TabIndex = 37; this.tbMaxG.TabIndex = 37;
this.tbMaxG.TickStyle = System.Windows.Forms.TickStyle.None; this.tbMaxG.TickStyle = System.Windows.Forms.TickStyle.None;
this.tbMaxG.Value = 255; this.tbMaxG.Value = 255;
...@@ -323,10 +323,10 @@ ...@@ -323,10 +323,10 @@
// tbMinG // tbMinG
// //
this.tbMinG.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(30)))), ((int)(((byte)(30))))); this.tbMinG.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(30)))), ((int)(((byte)(30)))));
this.tbMinG.Location = new System.Drawing.Point(145, 147); this.tbMinG.Location = new System.Drawing.Point(107, 147);
this.tbMinG.Maximum = 255; this.tbMinG.Maximum = 255;
this.tbMinG.Name = "tbMinG"; this.tbMinG.Name = "tbMinG";
this.tbMinG.Size = new System.Drawing.Size(141, 45); this.tbMinG.Size = new System.Drawing.Size(179, 45);
this.tbMinG.TabIndex = 36; this.tbMinG.TabIndex = 36;
this.tbMinG.TickStyle = System.Windows.Forms.TickStyle.None; this.tbMinG.TickStyle = System.Windows.Forms.TickStyle.None;
this.tbMinG.ValueChanged += new System.EventHandler(this.tbMinG_ValueChanged); this.tbMinG.ValueChanged += new System.EventHandler(this.tbMinG_ValueChanged);
...@@ -334,10 +334,10 @@ ...@@ -334,10 +334,10 @@
// tbMaxB // tbMaxB
// //
this.tbMaxB.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(30)))), ((int)(((byte)(30))))); this.tbMaxB.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(30)))), ((int)(((byte)(30)))));
this.tbMaxB.Location = new System.Drawing.Point(145, 306); this.tbMaxB.Location = new System.Drawing.Point(107, 306);
this.tbMaxB.Maximum = 255; this.tbMaxB.Maximum = 255;
this.tbMaxB.Name = "tbMaxB"; this.tbMaxB.Name = "tbMaxB";
this.tbMaxB.Size = new System.Drawing.Size(141, 45); this.tbMaxB.Size = new System.Drawing.Size(179, 45);
this.tbMaxB.TabIndex = 39; this.tbMaxB.TabIndex = 39;
this.tbMaxB.TickStyle = System.Windows.Forms.TickStyle.None; this.tbMaxB.TickStyle = System.Windows.Forms.TickStyle.None;
this.tbMaxB.Value = 255; this.tbMaxB.Value = 255;
...@@ -346,10 +346,10 @@ ...@@ -346,10 +346,10 @@
// tbMinB // tbMinB
// //
this.tbMinB.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(30)))), ((int)(((byte)(30))))); this.tbMinB.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(30)))), ((int)(((byte)(30)))));
this.tbMinB.Location = new System.Drawing.Point(145, 253); this.tbMinB.Location = new System.Drawing.Point(107, 253);
this.tbMinB.Maximum = 255; this.tbMinB.Maximum = 255;
this.tbMinB.Name = "tbMinB"; this.tbMinB.Name = "tbMinB";
this.tbMinB.Size = new System.Drawing.Size(141, 45); this.tbMinB.Size = new System.Drawing.Size(179, 45);
this.tbMinB.TabIndex = 38; this.tbMinB.TabIndex = 38;
this.tbMinB.TickStyle = System.Windows.Forms.TickStyle.None; this.tbMinB.TickStyle = System.Windows.Forms.TickStyle.None;
this.tbMinB.ValueChanged += new System.EventHandler(this.tbMinB_ValueChanged); this.tbMinB.ValueChanged += new System.EventHandler(this.tbMinB_ValueChanged);
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!