Ejemplo n.º 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";
        }
Ejemplo n.º 2
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();
        }