Example #1
0
        public void doubleMouse(Point point)
        {
            this.Focus();
            if (_plottingArea != null)
            {
                switch (_plottingArea.PlotStatus)
                {
                case PlottingStatus.新建模式:
                    _plottingInfomation.PlotStatus = PlottingStatus.编辑模式;
                    break;

                case PlottingStatus.编辑模式:
                    if (IsOperableRadarArea())
                    {
                        var    position = _locatorBorder.Locator.ScreenToMap(point.X, point.Y);
                        PointD pointD   = new PointD(position.Lon, position.Lat);
                        int    index    = _plottingArea.IndexOnLines(point);
                        if (index >= 0)
                        {
                            _plottingArea.Push(pointD, index);
                        }
                    }
                    break;
                }
            }
        }