Ejemplo n.º 1
0
        private void MeasureTool_Click(object sender, EventArgs e)
        {
            if (_Painter == null)
                _Painter = new MapFunctionMeasure(App.Map);

            if (!App.Map.MapFunctions.Contains(_Painter))
                App.Map.MapFunctions.Add(_Painter);

            App.Map.FunctionMode = FunctionMode.None;
            App.Map.Cursor = Cursors.Cross;
            _Painter.Activate();
        }
Ejemplo n.º 2
0
        private void MeasureToolClick(object sender, EventArgs e)
        {
            if (_painter == null)
            {
                _painter = new MapFunctionMeasure(App.Map);
            }

            if (!App.Map.MapFunctions.Contains(_painter))
            {
                App.Map.MapFunctions.Add(_painter);
            }

            App.Map.FunctionMode = FunctionMode.None;
            App.Map.Cursor       = Cursors.Cross;
            _painter.Activate();
        }