public EsaSegmentDetailsViewModel( IApproachService esaService) { if (esaService == null) { throw new ArgumentNullException("esaService"); } this.esaService = esaService; }
public EsaEditViewModel( IApproachService service) { if (service == null) { throw new ArgumentNullException("service"); } this.service = service; this.Altitude = 0; this.Radius = 0; this.CenterLatitude = 0; this.CenterLongitude = 0; this.DisplayName = "ESA Segment"; }
public ApproachViewModel( Func <IEsaSegmentDetailsViewModel> esaDetailsComponentFactory, Func <IEsaEditViewModel> esaEditViewModelFactory, IDeviationCollectionViewModel deviationViewer, IMapViewModel mapViewModel, IApproachService approachService, IWindowManager windowManager, IEventAggregator eventAggregator) { if (esaDetailsComponentFactory == null) { throw new ArgumentNullException("esaDetailsComponentFactory"); } if (esaEditViewModelFactory == null) { throw new ArgumentNullException("esaEditViewModelFactory"); } if (deviationViewer == null) { throw new ArgumentNullException("deviationViewer"); } if (mapViewModel == null) { throw new ArgumentNullException("mapViewModel"); } if (approachService == null) { throw new ArgumentNullException("approachService"); } if (windowManager == null) { throw new ArgumentNullException("windowManager"); } if (eventAggregator == null) { throw new ArgumentNullException("eventAggregator"); } this.esaDetailsComponentFactory = esaDetailsComponentFactory; this.esaEditViewModelFactory = esaEditViewModelFactory; this.deviationViewer = deviationViewer; this.mapViewModel = mapViewModel; this.approachService = approachService; this.windowManager = windowManager; this.eventAggregator = eventAggregator; }
public ApproachEditViewModel( IApproachService approachService) { if (approachService == null) { throw new ArgumentNullException("approachService"); } this.approachService = approachService; this.criteriaCache = new BindableCollection <CriteriaType>(); this.criteriaCache.Add(CriteriaType.ICAO); this.criteriaCache.Add(CriteriaType.NATO); // Defaults this.Id = Guid.Empty; this.SelectedCriteria = CriteriaType.UNDEFINED; this.ApproachName = string.Empty; }
public DeviationService( IApproachService approachService, IDeviationObserver deviationObserver, IDeviationFactory deviationFactory) { if (approachService == null) { throw new ArgumentNullException("approachService"); } if (deviationObserver == null) { throw new ArgumentNullException("deviationObserver"); } if (deviationFactory == null) { throw new ArgumentNullException("deviationFactory"); } this.approachService = approachService; this.deviationObserver = deviationObserver; this.deviationFactory = deviationFactory; }
public ApproachCollectionViewModel( Func <IApproachEditViewModel> editViewModelFactory, Func <IApproachDetailsViewModel> detailsViewModelFactory, Func <IApproachViewModel> approachViewModelFactory, IApproachService approachService, IWindowManager windowManager) { if (editViewModelFactory == null) { throw new ArgumentNullException("editViewModelFactory"); } if (detailsViewModelFactory == null) { throw new ArgumentNullException("detailsViewModelFactory"); } if (approachViewModelFactory == null) { throw new ArgumentNullException("approachViewModelFactory"); } if (approachService == null) { throw new ArgumentNullException("approachService"); } if (windowManager == null) { throw new ArgumentNullException("windowManager"); } this.editViewModelFactory = editViewModelFactory; this.detailsViewModelFactory = detailsViewModelFactory; this.approachViewModelFactory = approachViewModelFactory; this.approachService = approachService; this.windowManager = windowManager; this.approachesCache = new BindableCollection <IApproachDetailsViewModel>(); }