private void btUserModel_Click(object sender, EventArgs e) { if (modelProgram.ModelName != "ModelExample") { this.DialogResult = DialogResult.OK; } else { IcopMessenger messenger = new IcopMessenger("You need load model or creat new fist."); messenger.ShowDialog(); } }
private void btClearStep_Click(object sender, EventArgs e) { if (activeStep >= 0) { try { if (modelProgram.modelSteps[activeStep].Func != ModelProgram.IcopFunction.QRDT) { modelProgram.modelSteps.RemoveAt(activeStep); if (dgwStepsProgram.Rows.Count > 0) { dgwStepsProgram.Rows.RemoveAt(activeStep); } for (int i = activeStep; i < dgwStepsProgram.Rows.Count; i++) { dgwStepsProgram[0, i].Value = i; } } else { IcopMessenger messenger = new IcopMessenger("Can't delete QR code detect. If no need QR, Please skip it."); messenger.ShowDialog(); } pbICam0.Invalidate(); pbICam1.Invalidate(); pbICam2.Invalidate(); pbICam3.Invalidate(); activeStep = activeStep - 1; if (activeStep < 0) { activeStep = 0; } } catch (Exception) { } } }
public static void ICOP_messenger(string messenger) { IcopMessenger icopMessenger = new IcopMessenger(messenger); icopMessenger.ShowDialog(); }
public void messengerIcop(string messenger) { IcopMessenger icopMessenger = new IcopMessenger(messenger); icopMessenger.ShowDialog(); }