예제 #1
0
        public override void Dispose()
        {
            //Add event un-subscriptions here
            theLift.OnArrivedAtPosition1 -= TheLift_OnArrivedAtPosition1;
            theLift.OnArrivedAtPosition2 -= TheLift_OnArrivedAtPosition2;

            theLift            = null;
            transferDatcomInfo = null;
        }
예제 #2
0
        public MHEControl_PickDoubleLift(PickDoubleLiftDatcomInfo info, PickDoubleLift lift)
        {
            Info = info;                // set this to save properties
            transferDatcomInfo = info;
            theLift            = lift;
            casePLC            = lift.Controller as CasePLC_Datcom;

            //Add event subscriptions here
            theLift.OnArrivedAtPosition1          += TheLift_OnArrivedAtPosition1;
            theLift.OnArrivedAtPosition2          += TheLift_OnArrivedAtPosition2;
            casePLC.OnCallForwardTelegramReceived += CasePLC_OnCallForwardTelegramReceived;
        }