コード例 #1
0
        private void SnappingButtonClick(object sender, EventArgs e)
        {
            using (SnapSettingsDialog dlg = new SnapSettingsDialog(_geoMap)
            {
                DoSnapping = _doSnapping
            })
            {
                if (dlg.ShowDialog() == DialogResult.OK)
                {
                    _doSnapping = dlg.DoSnapping;
                    if (_moveVertexFunction != null)
                    {
                        _moveVertexFunction.DoSnapping = _doSnapping; // changed by jany_ (2016-02-24) update the snap settings of the functions without having to stop editing
                        if (_doSnapping)
                        {
                            SetSnapLayers(_moveVertexFunction);
                        }
                    }

                    if (_addShapeFunction != null)
                    {
                        _addShapeFunction.DoSnapping = _doSnapping;
                        if (_doSnapping)
                        {
                            SetSnapLayers(_addShapeFunction);
                        }
                    }
                }
            }
        }
コード例 #2
0
        private void SnappingButton_Click(object sender, EventArgs E)
        {
            SnapSettingsDialog dlg = new SnapSettingsDialog();

            dlg.DoSnapping = this._doSnapping;
            dlg.ShowDialog();
            this._doSnapping = dlg.DoSnapping;
        }
コード例 #3
0
 private void SnappingButtonClick(object sender, EventArgs e)
 {
     using (SnapSettingsDialog dlg = new SnapSettingsDialog(_geoMap)
     {
         DoSnapping = _doSnapping,
         SnappCulture = _handlerCulture
     })
     {
         if (dlg.ShowDialog() == DialogResult.OK)
         {
             _doSnapping = dlg.DoSnapping;
             _snappingActivCheck.Checked = _doSnapping;
             UpdateSnappingActivCheck();
         }
     }
 }
コード例 #4
0
        private void SnappingButton_Click(object sender, EventArgs e)
        {
            SnapSettingsDialog dlg = new SnapSettingsDialog {
                DoSnapping = _doSnapping
            };

            dlg.ShowDialog();
            _doSnapping = dlg.DoSnapping;
            if (_moveVertexFunction != null)
            {
                _moveVertexFunction.DoSnapping = _doSnapping;                              // changed by jany_ (2016-02-24) update the snap settings of the functions without having to stop editing
            }
            if (_addShapeFunction != null)
            {
                _addShapeFunction.DoSnapping = _doSnapping;
            }
        }
コード例 #5
0
        private void SnappingButtonClick(object sender, EventArgs e)
        {
            using (SnapSettingsDialog dlg = new SnapSettingsDialog(_geoMap)
            {
                DoSnapping = _doSnapping
            })
            {
                if (dlg.ShowDialog() == DialogResult.OK)
                {
                    _doSnapping = dlg.DoSnapping;
                    if (_moveVertexFunction != null)
                    {
                        SetSnapLayers(_moveVertexFunction);
                    }

                    if (_addShapeFunction != null)
                    {
                        SetSnapLayers(_addShapeFunction);
                    }
                }
            }
        }
コード例 #6
0
ファイル: ButtonHandler.cs プロジェクト: ExRam/DotSpatial-PCL
 private void SnappingButton_Click(object sender, EventArgs E)
 {
     SnapSettingsDialog dlg = new SnapSettingsDialog();
     dlg.DoSnapping = this._doSnapping;
     dlg.ShowDialog();
     this._doSnapping = dlg.DoSnapping;
 }