Пример #1
0
 public VisualPpm(PpmPoint ppmPoint)
 {
     InitializeComponent();
     _ppmPoint          = ppmPoint;
     NumberInRoute.Text = _ppmPoint.NumberInRoute.ToString();
     _coordinateHelper  = new CoordinateHelper();
     _routeHelper       = RouteHelper.GetInstance();
     _routeHelper.AddNavigationPoint(_ppmPoint.NavigationPoint);
     EventsHelper.MenuStatusEvent   += StatePpmEvent;
     EventsHelper.ChangeOfSizeEvent += ChangeOfSize;
     EventsHelper.ChangeNpDEvent    += ChangeNpDEvent;
     PrepareRouteLine(ppmPoint);
     ChangeNpDEvent(new ChangeNp()
     {
         Action = 1, TypeOfNp = 2, IdNp = 1
     });
 }