public override void Dispose() { liftLoad.Dispose(); delayTimer.Dispose(); if (LiftConveyor != null) { LiftConveyor.Dispose(); } if (liftStopPoint != null) { liftStopPoint.Dispose(); } if (liftLoad != null) { liftLoad.Dispose(); } if (lift != null) { lift.Dispose(); } if (Assemblies != null) { foreach (Assembly assembly in this.Assemblies) { assembly.Dispose(); } } base.Dispose(); }
public override void Dispose() { shuttleAP.OnEnter -= shuttleAP_OnEnter; trackRail.Car.OnPositionChanged -= Car_OnPositionChanged; ShuttleTasks.CollectionChanged -= ShuttleTasks_CollectionChanged; shuttleAP.Dispose(); shuttleConveyor.Dispose(); trackRail.Dispose(); base.Dispose(); }
public override void Dispose() { shuttleAP.OnEnter -= shuttleAP_OnEnter; enterPointDepth1.OnEnter -= enterPointDepth1_OnEnter; exitPointDepth1.OnEnter -= exitPointDepth1_OnEnter; exitPointDepth2.OnEnter -= exitPointDepth2_OnEnter; trackRail.Car.OnPositionChanged -= Car_OnPositionChanged; ShuttleTasks.CollectionChanged -= ShuttleTasks_CollectionChanged; shuttleAP.Dispose(); enterPointDepth1.Dispose(); enterPointDepth2.Dispose(); exitPointDepth1.Dispose(); exitPointDepth2.Dispose(); shuttleConveyor.Dispose(); trackRail.Dispose(); base.Dispose(); }
public override void Dispose() { foreach (FixPoint fp in FixPoints) { if (fp.Type == FixPoint.Types.Start) { fp.OnSnapped -= new FixPoint.SnappedEvent(SourceFixPoint_OnSnapped); fp.OnUnSnapped -= new FixPoint.UnSnappedEvent(SourceFixPoint_OnUnSnapped); } } Tasks.CollectionChanged -= Tasks_CollectionChanged; track.Dispose(); conveyor.LineReleasePhotocell.OnPhotocellStatusChanged -= LineReleasePhotocell_OnPhotocellStatusChanged; conveyor.ThisRouteStatus.OnRouteStatusChanged -= ThisRouteStatus_OnRouteStatusChanged; conveyor.Dispose(); trackLoad.OnPositionChanged -= TrackLoad_OnPositionChanged; trackLoad.Dispose(); trackStopPoint.OnEnter -= TrackStopPoint_OnEnter; trackStopPoint.Dispose(); base.Dispose(); }