public Cycle(PPTraceStation db, string prehref, int wsID, Dictionary <string, int> subWCIDs, bool usesTraceability, int cycleid, bool hashomecycle, bool usesRFIDTraceability) { DBResource = db; PrehRef = prehref; WSID = wsID; SubWorkCenterIDs = subWCIDs; UsingTraceability = usesTraceability; UsingRFIDTraceability = usesRFIDTraceability; TraceNumbers = new List <long>(); HasScrewing = false; CycleId = cycleid; HasHomeCycle = hashomecycle; _timers = new List <TimerONPreh>(); Pulsers = new List <PulseFreqPreh>(); HMI = new FormInterface(CycleId); Hardware = new HardwareInterface(); ScannerInfo = new Dictionary <string, string>(); RFIDInfo = new Dictionary <string, string[]>(); MessageID = 0; _runningBlinks = new Dictionary <EngineData.DO, System.Timers.Timer>(); Engine.ScannerNewData += Engine_ScannerNewData; Engine.RFIDNewData += Engine_RFIDNewData; CalibrationMeasurementList = new List <CalibrationMeasurement>(); RFIDTag = new string[] { }; SentMessages = new List <EngineData.Step>(); }
public Cycle(PPTraceStation db, string prehref, int wsID, int subWCID, bool usesTraceability, int cycleid, bool hashomecycle, bool usesRFIDTraceability) { DBResource = db; PrehRef = prehref; WSID = wsID; SubWorkCenterID = subWCID; UsingTraceability = usesTraceability; UsingRFIDTraceability = usesRFIDTraceability; TraceNumbers = new List <long>(); HasScrewing = false; CycleId = cycleid; HasHomeCycle = hashomecycle; Timers = new List <TimerONPreh>(); Pulsers = new List <PulseFreqPreh>(); MyTimer = new System.Timers.Timer(); HMI = new FormInterface(CycleId); Hardware = new HardwareInterface(); ScannerInfo = new Dictionary <string, string>(); RFIDInfo = new Dictionary <string, string[]>(); MessageID = 0; Engine.ScannerNewData += Engine_ScannerNewData; Engine.RFIDNewData += Engine_RFIDNewData; }