예제 #1
0
        private void MoveVertexButton_Click(object sender, EventArgs e)
        {
            if (_geoMap == null)
            {
                return;
            }
            if (_activeLayer == null)
            {
                return;
            }
            if (_moveVertexFunction == null)
            {
                _moveVertexFunction = new MoveVertexFunction(_geoMap)
                {
                    Name = "MoveVertex"
                };
            }

            if (_geoMap.MapFunctions.Contains(_moveVertexFunction) == false)
            {
                _geoMap.MapFunctions.Add(_moveVertexFunction);
            }
            _geoMap.FunctionMode      = FunctionMode.None;
            _geoMap.Cursor            = Cursors.Cross;
            _moveVertexFunction.Layer = _activeLayer;
            UpdateMoveVertexFunctionLayer();
            _moveVertexFunction.Activate();
        }
예제 #2
0
        private void MoveVertexButtonClick(object sender, EventArgs e)
        {
            if (_geoMap == null)
            {
                return;
            }

            if (_activeLayer == null)
            {
                return;
            }

            if (_moveVertexFunction == null)
            {
                _moveVertexFunction = new MoveVertexFunction(_geoMap, this)
                {
                    Name = "MoveVertex"
                };
                _moveVertexFunction.MoveVertexCulture = _handlerCulture;
            }

            if (_geoMap.MapFunctions.Contains(_moveVertexFunction) == false)
            {
                _geoMap.MapFunctions.Add(_moveVertexFunction);
            }

            _geoMap.FunctionMode = FunctionMode.None;
            _geoMap.Cursor       = Cursors.Cross;
            _shapeDraggingActivButton.Enabled = true;
            _moveVertexFunction.Layer         = _activeLayer;
            UpdateMoveVertexFunctionLayer();
            _moveVertexFunction.Activate();
            UpdateShowVerticesActivCheck();
        }
예제 #3
0
        /// <summary>
        /// 도형요소 구성좌표 편집하기, MoveVertexFunction을 Activate한다.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void MoveVertexButtonClick(object sender, EventArgs e)
        {
            if (_geoMap == null)
            {
                return;
            }

            if (_geoMap.Layers.SelectedLayer != null)
            {
                _activeLayer = _geoMap.Layers.SelectedLayer as IFeatureLayer;
            }

            if (_activeLayer == null)
            {
                MessageBox.Show("편집 대상 레이어를 선택하여 주십시요.");
                return;
            }

            // 편집함수가 없으면 편집함수를 생성한다.
            if (_moveVertexFunction == null)
            {
                _moveVertexFunction = new MoveVertexFunction(_geoMap)
                {
                    Name = "MoveVertex"
                };
            }

            // 현재 맵 컨트롤에 편집함수를가 없으면, 생성한 편집함수를 추가한다.
            if (_geoMap.MapFunctions.Contains(_moveVertexFunction) == false)
            {
                _geoMap.MapFunctions.Add(_moveVertexFunction);
            }

            _geoMap.FunctionMode = FunctionMode.None;
            _geoMap.Cursor       = Cursors.Cross;

            _moveVertexFunction.Layer = _activeLayer;

            UpdateMoveVertexFunctionLayer();
            _moveVertexFunction.Activate();
        }