コード例 #1
0
 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();
     }
 }
コード例 #2
0
 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) { }
     }
 }
コード例 #3
0
ファイル: Global.cs プロジェクト: Paztty/ICOP2
        public static void ICOP_messenger(string messenger)
        {
            IcopMessenger icopMessenger = new IcopMessenger(messenger);

            icopMessenger.ShowDialog();
        }
コード例 #4
0
        public void messengerIcop(string messenger)
        {
            IcopMessenger icopMessenger = new IcopMessenger(messenger);

            icopMessenger.ShowDialog();
        }