예제 #1
0
파일: CrossHair.cs 프로젝트: nhannd/Xian
			public CrossHair(IImageBox imageBox, SpatialLocatorTool spatialLocatorTool)
			{
				ImageBox = imageBox;
				_spatialLocatorTool = spatialLocatorTool;

				_crosshairGraphic = new CrosshairGraphic();
				_crosshairGraphic.Drawing += OnGraphicDrawing;
			}
예제 #2
0
파일: CrossHair.cs 프로젝트: hksonngan/Xian
            public CrossHair(IImageBox imageBox, SpatialLocatorTool spatialLocatorTool)
            {
                ImageBox            = imageBox;
                _spatialLocatorTool = spatialLocatorTool;

                _crosshairGraphic          = new CrosshairGraphic();
                _crosshairGraphic.Drawing += OnGraphicDrawing;
            }
예제 #3
0
파일: CrossHair.cs 프로젝트: hksonngan/Xian
            public void Dispose()
            {
                if (_crosshairGraphic != null)
                {
                    _crosshairGraphic.Drawing -= OnGraphicDrawing;

                    RemoveGraphicFromCurrentImage();

                    _crosshairGraphic.Dispose();
                    _crosshairGraphic = null;
                }
            }
예제 #4
0
파일: CrossHair.cs 프로젝트: nhannd/Xian
			public void Dispose()
			{
				if (_crosshairGraphic != null)
				{
					_crosshairGraphic.Drawing -= OnGraphicDrawing;

					RemoveGraphicFromCurrentImage();

					_crosshairGraphic.Dispose();
					_crosshairGraphic = null;
				}
			}