Exemplo n.º 1
0
 public void Clear()
 {
     for (int i = 0; i < _ppmPoints.Length; i++)
     {
         _ppmPoints[i] = null;
     }
     _countNavigationPoint = 0;
     EventsHelper.OnPpmCollectionEvent(_ppmPoints);
 }
Exemplo n.º 2
0
        public VisualPpm CrateVisualPpm(Point point)
        {
            if (_countNavigationPoint >= 19)
            {
                MessageBox.Show("Маршрут более чем из 20 точек слишком токсичен для летчика!!!");
                return(null);
            }
            _countNavigationPoint++;
            var ppmPoint = PreparePpmPoint(point);

            _ppmPoints[_countNavigationPoint - 1] = ppmPoint;
            EventsHelper.OnPpmCollectionEvent(_ppmPoints);
            return(new VisualPpm(ppmPoint));
        }