Ejemplo n.º 1
0
 public MagneticSteel(ControlUnitMediator unitMediator, BoardCardControl2 boardCardCtr,
                      int startChannle,
                      int endChannle,
                      DeviceEnd deviceEnd,
                      MagneticSteelEnd magneticSteelEnd,
                      string name,
                      UInt32 timeOut = 2000) : base(unitMediator)
 {
     this.boardCardCtr = boardCardCtr;
     this.startChannle = startChannle;
     this.endChannle   = endChannle;
     if (this.boardCardCtr != null)
     {
         this.boardCardCtr.InterruptEvent += new EventHandler <DiSnapEventArgs>(TriggerMagneticSteelEvent);
     }
     this.hasEndSignal       = false;
     this.hasStartSignal     = false;
     this.timeOut            = timeOut;
     this.signalTimeoutTimer = new MyTimer(timeOut);
     this.deviceEnd          = deviceEnd;
     this.magneticSteelEnd   = magneticSteelEnd;
     this.name     = name;
     this.spacing  = 270;
     this.timingSW = new Stopwatch();
 }
 public ControlUnitColleague(ControlUnitMediator unitMediator)
 {
     this.unitMediator = unitMediator;
 }