コード例 #1
0
ファイル: Common.cs プロジェクト: TopMouse72/BU1
 public static void OpenCDIVision()
 {
     AOIProcess = StartAOIProcess();
     SocketToAOI.WaitingConnect();
     System.Threading.Thread.Sleep(2000);
     ClassCommonSetting.SocketToAOI.SendCommandProductChange(SysParam.CurrentProduct);
     timer.StartTimer(50, 50);
 }
コード例 #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());
 }
コード例 #3
0
ファイル: Statistic.cs プロジェクト: TopMouse72/BU1
 public static void WorkFlowTimerStart(bool start)
 {
     if (start)
     {
         if (!timer.IsCounting)
         {
             timer.StartTimer(60000, 60000);
         }
     }
     else
     {
         timer.StopTimer();
         Save();
     }
 }
コード例 #4
0
 public override void StartHandler(BaseClass sender, StateEventArgs e)
 {
     base.StartHandler(sender, e);
     timer.StartTimer(5000, 5000);
 }