Example #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);
            }
        }
Example #2
0
 public FlightPlanViewModelDesign(PlanPointsPartViewModel planPointsVm)
 {
     PlanPointsViewModel = planPointsVm;
 }
Example #3
0
 public FlightPlanViewModelDesign(PlanPointsPartViewModel planPointsVm)
 {
     PlanPointsViewModel = planPointsVm;
 }