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

                _resliceToolGroup = resliceToolGroup;
            }
Exemplo n.º 3
0
 public void Dispose()
 {
     _owner        = null;
     _initialState = null;
 }
Exemplo n.º 4
0
 public ResliceToolGroupState(ResliceToolGroup owner)
 {
     _owner        = owner;
     _initialState = this.CreateMemento();
 }
Exemplo n.º 5
0
			public ResliceTool(ResliceToolGroup resliceToolGroup)
			{
				base.Behaviour |= MouseButtonHandlerBehaviour.SuppressOnTileActivate;

				_resliceToolGroup = resliceToolGroup;
			}
Exemplo n.º 6
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);
			}