예제 #1
0
        private void Configure()
        {
            _previousParts = new List<List<Coordinate>>();
            YieldStyle = YieldStyles.LeftButton | YieldStyles.RightButton;
            _measureDialog = new MeasureDialog();
            HandleMeasureDialogEvents();

            Control map = Map as Control;
            if (map != null) map.MouseLeave += map_MouseLeave;
            this.Name = "MapFunctionMeasure";
        }
예제 #2
0
        private void Configure()
        {
            _previousParts = new List <List <Coordinate> >();
            YieldStyle     = YieldStyles.LeftButton | YieldStyles.RightButton;
            _measureDialog = new MeasureDialog();
            HandleMeasureDialogEvents();

            if (Map is Control map)
            {
                map.MouseLeave += MapMouseLeave;
            }
            Name = "MapFunctionMeasure";
        }
예제 #3
0
        /// <summary>
        /// Forces this function to begin collecting points for building a new shape.
        /// </summary>
        protected override void OnActivate()
        {
            if (_measureDialog == null || _measureDialog.IsDisposed)
            {
                _measureDialog = new MeasureDialog();
                HandleMeasureDialogEvents();
            }
            _measureDialog.Show();
            if (_standBy == false)
            {
                _previousParts = new List <List <Coordinate> >();
                _coordinates   = new List <Coordinate>();
            }

            _standBy = false;
            base.OnActivate();
        }
예제 #4
0
        private void Configure()
        {
            MeasureFuncCulture = new CultureInfo(string.Empty);

            _previousParts = new List <List <Coordinate> >();
            YieldStyle     = YieldStyles.LeftButton | YieldStyles.RightButton;
            _measureDialog = new MeasureDialog();
            _measureDialog.MeasureDialogCulture = _measureFuncCulture;
            HandleMeasureDialogEvents();

            Control map = Map as Control;

            if (map != null)
            {
                map.MouseLeave += MapMouseLeave;
            }
            Name = "MapFunctionMeasure";
        }
예제 #5
0
        /// <summary>
        /// Forces this function to begin collecting points for building a new shape.
        /// </summary>
        protected override void OnActivate()
        {
            if (_measureDialog == null || _measureDialog.IsDisposed)
            {
                _measureDialog = new MeasureDialog();
                HandleMeasureDialogEvents();
            }
            _measureDialog.Show();
            if (_standBy == false)
            {
                _previousParts = new List<List<Coordinate>>();
                _coordinates = new List<Coordinate>();
            }

            _standBy = false;
            base.OnActivate();
        }