コード例 #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();
        }