protected override void Dispose(bool disposing) { this.ImageViewer.EventBroker.ImageBoxDrawing -= OnImageViewerImageBoxDrawing; if (disposing) { if (this.SliceSet != null) { this.SliceSet = null; } if (_resliceGraphic != null) { TranslocateGraphic(_resliceGraphic, null); _resliceGraphic.Points.PointChanged -= OnAnchorPointChanged; _resliceGraphic.Dispose(); _resliceGraphic = null; } } _resliceToolGroup = null; base.Dispose(disposing); }
public ResliceTool(ResliceToolGroup resliceToolGroup) { base.Behaviour |= MouseButtonHandlerBehaviour.SuppressOnTileActivate; _resliceToolGroup = resliceToolGroup; }
public void Dispose() { _owner = null; _initialState = null; }
public ResliceToolGroupState(ResliceToolGroup owner) { _owner = owner; _initialState = this.CreateMemento(); }