Exemplo n.º 1
0
 public static void OpenCDIVision()
 {
     AOIProcess = StartAOIProcess();
     SocketToAOI.WaitingConnect();
     System.Threading.Thread.Sleep(2000);
     ClassCommonSetting.SocketToAOI.SendCommandProductChange(SysParam.CurrentProduct);
     timer.StartTimer(50, 50);
 }
Exemplo n.º 2
0
 public override void StartHandler(BaseClass sender, StateEventArgs e)
 {
     base.StartHandler(sender, e);
     BaseForm.DoInvokeRequired(selectBoxNoLoad, () => selectBoxNoLoad.Checked = false);
     workflowStart = DateTime.Now;
     timer.StartTimer(1000, 1000);
     BaseForm.SetControlText(cellTextBoxWorkFlowStart, workflowStart.ToLongTimeString());
 }
Exemplo n.º 3
0
 public static void WorkFlowTimerStart(bool start)
 {
     if (start)
     {
         if (!timer.IsCounting)
         {
             timer.StartTimer(60000, 60000);
         }
     }
     else
     {
         timer.StopTimer();
         Save();
     }
 }
Exemplo n.º 4
0
 public override void StartHandler(BaseClass sender, StateEventArgs e)
 {
     base.StartHandler(sender, e);
     timer.StartTimer(5000, 5000);
 }