Commit b0770b49 张东亮

视觉检测料盘功能修改

1 个父辈 5e87868b
...@@ -255,6 +255,7 @@ ...@@ -255,6 +255,7 @@
this.txtthreshold.Name = "txtthreshold"; this.txtthreshold.Name = "txtthreshold";
this.txtthreshold.Size = new System.Drawing.Size(141, 25); this.txtthreshold.Size = new System.Drawing.Size(141, 25);
this.txtthreshold.TabIndex = 28; this.txtthreshold.TabIndex = 28;
this.txtthreshold.TextChanged += new System.EventHandler(this.txtthreshold_TextChanged);
// //
// button3 // button3
// //
...@@ -297,6 +298,7 @@ ...@@ -297,6 +298,7 @@
this.MaximizeBox = false; this.MaximizeBox = false;
this.Name = "Form1"; this.Name = "Form1";
this.Text = "视觉检测料盘调试"; this.Text = "视觉检测料盘调试";
this.Load += new System.EventHandler(this.Form1_Load);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.txtHL)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.txtHL)).EndInit();
......
...@@ -226,6 +226,17 @@ namespace ImgCheckReel ...@@ -226,6 +226,17 @@ namespace ImgCheckReel
textBox2.Text = TestRoi.LoadConfig(); textBox2.Text = TestRoi.LoadConfig();
} }
private void txtthreshold_TextChanged(object sender, EventArgs e)
{
double.TryParse(txtthreshold.Text, out threshold);
button2_Click(null, null);
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void txtSL_Scroll(object sender, EventArgs e) private void txtSL_Scroll(object sender, EventArgs e)
{ {
UpdateValue(); UpdateValue();
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!