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); } } } } }
private void SnappingButton_Click(object sender, EventArgs E) { SnapSettingsDialog dlg = new SnapSettingsDialog(); dlg.DoSnapping = this._doSnapping; dlg.ShowDialog(); this._doSnapping = dlg.DoSnapping; }
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(); } } }
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; } }
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); } } } }