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

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

				_resliceToolGroup = resliceToolGroup;
			}
Exemple #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);
			}