private void cboPattent_Leave(object sender, EventArgs e) { if (PNInfo.ISNotInSpec("码型", cboPattent.Text.ToString(), 0, 31)) { cboVcc.Focus(); return; } }
private void cboVcc_Leave(object sender, EventArgs e) { if (PNInfo.ISNotInSpec("电压", cboVcc.Text.ToString(), 0, 12)) { cboVcc.Focus(); return; } }
private void cboTemp_Leave(object sender, EventArgs e) { if (PNInfo.ISNotInSpec("温度", cboTemp.Text.ToString(), -120, 200)) { cboTemp.Focus(); return; } }
private void cboChannel_Leave(object sender, EventArgs e) { if (PNInfo.ISNotInSpec("模块通道号", cboChannel.Text.ToString(), 0, 4)) { cboChannel.Focus(); return; } }
private void cboUSBPort_Leave(object sender, EventArgs e) { try { if (PNInfo.ISNotInSpec("USB端口号", cboUSBPort.Text.ToString(), 0, 10)) { cboUSBPort.Focus(); return; } } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
private void cboDataRecord_Leave(object sender, EventArgs e) //140604_3 { try { if (PNInfo.ISNotInSpec("测试结果存档", cboDataRecord.Text.ToString(), 0, 1)) { cboDataRecord.Focus(); return; } } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
private void cboFailbreak_Leave(object sender, EventArgs e) //140604_3 { try { if (PNInfo.ISNotInSpec("超出规格停止", cboFailbreak.Text.ToString(), 0, 1)) { cboFailbreak.Focus(); return; } } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }