Ejemplo n.º 1
0
            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);
            }
Ejemplo n.º 2
0
            public ResliceTool(ResliceToolGroup resliceToolGroup)
            {
                base.Behaviour |= MouseButtonHandlerBehaviour.SuppressOnTileActivate;

                _resliceToolGroup = resliceToolGroup;
            }
Ejemplo n.º 3
0
 public void Dispose()
 {
     _owner        = null;
     _initialState = null;
 }
Ejemplo n.º 4
0
 public ResliceToolGroupState(ResliceToolGroup owner)
 {
     _owner        = owner;
     _initialState = this.CreateMemento();
 }