Exemple #1
0
 public MainWindowViewModel(
     IAppService appService,
     IDataserviceProvider dataserviceProvider,
     IDesignNavigationService navigationService,
     IFileDialogService fileDialogService,
     IRecentFilesDataservice recentFilesDataservice,
     Prism.Services.Dialogs.IDialogService dialogService,
     NatCruise.Services.IDialogService cruiseDialogService,
     IDeviceInfoService deviceInfo)
 {
     AppService             = appService ?? throw new ArgumentNullException(nameof(appService));
     DataserviceProvider    = dataserviceProvider ?? throw new ArgumentNullException(nameof(dataserviceProvider));
     DialogService          = dialogService ?? throw new ArgumentNullException(nameof(dialogService));
     FileDialogService      = fileDialogService ?? throw new ArgumentNullException(nameof(fileDialogService));
     RecentFilesDataservice = recentFilesDataservice ?? throw new ArgumentNullException(nameof(recentFilesDataservice));
     NavigationService      = navigationService ?? throw new ArgumentNullException(nameof(navigationService));
     DeviceInfoService      = deviceInfo ?? throw new ArgumentNullException(nameof(deviceInfo));
     CruiseDialogService    = cruiseDialogService ?? throw new ArgumentNullException(nameof(cruiseDialogService));
 }
Exemple #2
0
 public CruiseMasterView(IDesignNavigationService navigationService) : this()
 {
     //RegionManager = regionManager;
     NavigationService = navigationService ?? throw new ArgumentNullException(nameof(navigationService));
 }