Пример #1
0
        public FlightPlanViewModel(IEventAggregator evtAggregator, PlanPointsPartViewModel planPointsVm,
                                   FlightPlanMapViewModel flightPlanMapViewModel)
        {
            _evtAggregator       = evtAggregator;
            _planPointsViewModel = planPointsVm;
            _planPointsViewModel.ParentFlightPlan = this;
            _flightPlanMapViewModel = flightPlanMapViewModel;
            _flightPlanMapViewModel.ParentFlightPlan = this;

            var reqPlanShowEvt = _evtAggregator.GetEvent <FlightPlanReqPlanShowEvent>();
            var openPlanErrEvt = _evtAggregator.GetEvent <FlightPlanOpenErrorEvent>();

            if (reqPlanShowEvt != null)
            {
                reqPlanShowEvt.Subscribe(OnReqPlanShow);
            }

            if (openPlanErrEvt != null)
            {
                openPlanErrEvt.Subscribe(OnOpenPlanError);
            }
        }
Пример #2
0
 public FlightPlanViewModelDesign(PlanPointsPartViewModel planPointsVm)
 {
     PlanPointsViewModel = planPointsVm;
 }
Пример #3
0
 public FlightPlanViewModelDesign(PlanPointsPartViewModel planPointsVm)
 {
     PlanPointsViewModel = planPointsVm;
 }