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() { Core.Environment.Scene.OnLoaded -= Scene_OnLoaded; constructDevice = null; if (Leaving != null) { Leaving.Dispose(); } if (Entering != null) { Entering.Dispose(); } arrow.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() { if (sorterElementFixPoint != null) { sorterElementFixPoint.ChutePoint = null; sorterElementFixPoint = null; } EndFixPoint.OnSnapped -= EndFixPoint_Snapped; StartFixPoint.OnSnapped -= StartFixPoint_Snapped; StartFixPoint.OnUnSnapped -= StartFixPoint_UnSnapped; chutePoint.OnEnter -= chutePoint_OnEnter; chutePoint.Dispose(); readyTimer.OnElapsed -= readyTimer_OnElapsed; readyTimer.Dispose(); base.Dispose(); }
/// <summary> /// Disposes this instance. /// </summary> public override void Dispose() { base.OnEnter -= Entering; base.Dispose(); leaving.OnEnter -= Leaving; if (currentload != null) { currentload.OnDisposed -= CurrentLoadDisposed; ClearCurrentLoadRemovedEvent(currentload.Route); } currentload = null; leaving.Dispose(); OnRemoved -= Sensor_Removed; OnEnabledChanged -= Sensor_OnEnabledChanged; }
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(); }