Пример #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);
            }
Пример #2
0
            public ResliceTool(ResliceToolGroup resliceToolGroup)
            {
                base.Behaviour |= MouseButtonHandlerBehaviour.SuppressOnTileActivate;

                _resliceToolGroup = resliceToolGroup;
            }
Пример #3
0
 public void Dispose()
 {
     _owner        = null;
     _initialState = null;
 }
Пример #4
0
 public ResliceToolGroupState(ResliceToolGroup owner)
 {
     _owner        = owner;
     _initialState = this.CreateMemento();
 }
Пример #5
0
			public ResliceTool(ResliceToolGroup resliceToolGroup)
			{
				base.Behaviour |= MouseButtonHandlerBehaviour.SuppressOnTileActivate;

				_resliceToolGroup = resliceToolGroup;
			}
Пример #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);
			}