public ViewControlers(AllForms.FormMain frmMain, ITestFlow flow, string eid) { this.frmMain = frmMain; this.flow = flow; this.eid = eid; runState = false; }
private static MyStopwatch stopwatch; //秒表 /// <summary> /// 私有构造函数 /// </summary> /// <param name="frmMain"></param> private ProductionTestFactory(AllForms.FormMain frmMain) { this.frmMain = frmMain; stopwatch = new MyStopwatch(frmMain.DisplayStopwatch); flow = new ProductionTestFlow(frmMain, ProductionInfo.PlanCode, ProductionInfo.Procedure, ProductionInfo.Station); }
/// <summary> /// 获取唯一实例 /// </summary> /// <param name="frmMain"></param> /// <returns></returns> public static ProductionTestFactory GetProductionTestFactory(AllForms.FormMain frmMain) { if (productionTestFactory == null) { productionTestFactory = new ProductionTestFactory(frmMain); } return(productionTestFactory); }
/// <summary> /// 获取唯一实例 /// </summary> /// <param name="frmMain"></param> /// <returns></returns> public static ResultJudge GetResultJudge(AllForms.FormMain frmMain) { if (resultJudge == null) { resultJudge = new ResultJudge(frmMain); } return(resultJudge); }
/// <summary> /// 构造函数 /// </summary> /// <param name="frmMain"></param> /// <param name="planCode"></param> /// <param name="procedure"></param> /// <param name="station"></param> public TestFlow(AllForms.FormMain frmMain, string eid, string log, int result, string planCode) { this.frmMain = frmMain; this.eid = eid; this.log = log; this.result = result; this.planCode = planCode; procedure = ProductionInfo.Procedure; station = ProductionInfo.Station; }
public FolderMonitorHelper(AllForms.FormMain frmMain) { this.frmMain = frmMain; watcher = new FileSystemWatcher(FolderMonitorInfo.MonitorFolderPath); watcher.IncludeSubdirectories = true; watcher.EnableRaisingEvents = true; //启用FileSystemWatcher watcher.Created += Watcher_Created; //watcher.Changed += watcher_Changed; //watcher.Deleted += new FileSystemEventHandler(OnDeleted); //watcher.Renamed += new RenamedEventHandler(OnRenamed); }
/// <summary> /// 构造函数 /// </summary> /// <param name="frmMain"></param> /// <param name="planCode"></param> /// <param name="procedure"></param> /// <param name="station"></param> public ProductionTestFlow(AllForms.FormMain frmMain, string planCode, string procedure, string station) { this.frmMain = frmMain; this.planCode = planCode; this.procedure = procedure; this.station = station; runState = false; readWriteIdHandle = new ReadWriteIdHandle(frmMain); InitTimeOutTimer(); }
/// <summary> /// 构造函数 /// </summary> /// <param name="frmMain"></param> public ResultJudge(AllForms.FormMain frmMain) { this.frmMain = frmMain; }
/// <summary> /// 私有构造函数 /// </summary> /// <param name="frmMain"></param> private ResultJudge(AllForms.FormMain frmMain) { this.frmMain = frmMain; }