| | |
| | | cvImage.SetScreenSize(); |
| | | cvImage.OnElementChangedHandle -= CvImage_OnElementChangedHandle; |
| | | cvImage.OnElementChangedHandle += CvImage_OnElementChangedHandle; |
| | | |
| | | timer1.Enabled = true; |
| | | }; |
| | | } |
| | | |
| | |
| | | { |
| | | _barcode += keyStr.ToUpper(); |
| | | } |
| | | else if (keyStr.Length == 2 && keyStr.StartsWith("D")) |
| | | { |
| | | _barcode += keyStr.Substring(1).ToUpper(); |
| | | } |
| | | |
| | | if (e.KeyValue == 13) |
| | | { |
| | |
| | | btnStartMeasure.BackColor = lblMachineState.BackColor = Color.Lime; |
| | | btnStartMeasure.ForeColor = lblMachineState.ForeColor = Color.Black; |
| | | lblMachineState.Text = "就绪"; |
| | | |
| | | |
| | | btnStartMeasure.Text = "开始测量"; |
| | | btnStartMeasure.Enabled = true; |
| | | break; |
| | |
| | | } |
| | | #endregion |
| | | |
| | | private void timer1_Tick(object sender, EventArgs e) |
| | | { |
| | | cvImage.Refresh(); |
| | | } |
| | | } |
| | | } |