private void btn_Sure_Click(object sender, EventArgs e) { this.thresold_region.SelectedValue = this.thresold_region.Text; if (Check_pal()) { UpdateThresholdTest.OnSendUpdateThresholdTest(new UpdateThresholdTestEventArgs(Threshold_image.SelectedItem.ToString(), thresold_region.Text.ToString() + ".region", comboBox_imageout.Text.ToString() + ".img", trackBar_min.Value, trackBar_max.Value, false)); this.Visible = false; } }
public void sendevent() { this.thresold_region.SelectedValue = this.thresold_region.Text; if (Check_pal()) { UpdateThresholdTest.OnSendUpdateThresholdTest(new UpdateThresholdTestEventArgs(Threshold_image.SelectedItem.ToString(), thresold_region.Text.ToString() + ".region", comboBox_imageout.Text.ToString() + ".img", trackBar_min.Value, trackBar_max.Value, false)); // this.Visible = false; } }
public bool Send_name() { if (Threshold_image.Items.Count == 0) { return(false); } if (Threshold_image.SelectedItem == null) { return(false); } UpdateThresholdTest.OnSendUpdateThresholdTest(new UpdateThresholdTestEventArgs(Threshold_image.SelectedItem.ToString() + ".img", thresold_region.Text.ToString() + ".region", comboBox_imageout.Text.ToString() + ".img", trackBar_min.Value, trackBar_max.Value, false)); return(true); }
private void trackBar_max_ValueChanged(object sender, EventArgs e) { if (checkBox_dya.Checked) { if (this.Threshold_image.SelectedItem.ToString() == "" || this.Threshold_image == null) { MessageBox.Show("二值化处理: 请选择输入图像"); return; } if (this.thresold_region == null && this.thresold_region.Text == "") { MessageBox.Show("二值化处理: 请选择输出图像"); return; } if (this.trackBar_min.Value > this.trackBar_max.Value) { MessageBox.Show("二值化处理: MinValue 不能超过MaxValue"); return; } UpdateThresholdTest.OnSendUpdateThresholdTest(new UpdateThresholdTestEventArgs(Threshold_image.SelectedItem.ToString() + ".img", thresold_region.Text.ToString() + ".region", comboBox_imageout.Text.ToString() + ".img", trackBar_min.Value, trackBar_max.Value, true)); } }