public static void OpenCDIVision() { AOIProcess = StartAOIProcess(); SocketToAOI.WaitingConnect(); System.Threading.Thread.Sleep(2000); ClassCommonSetting.SocketToAOI.SendCommandProductChange(SysParam.CurrentProduct); timer.StartTimer(50, 50); }
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()); }
public static void WorkFlowTimerStart(bool start) { if (start) { if (!timer.IsCounting) { timer.StartTimer(60000, 60000); } } else { timer.StopTimer(); Save(); } }
public override void StartHandler(BaseClass sender, StateEventArgs e) { base.StartHandler(sender, e); timer.StartTimer(5000, 5000); }