Пример #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));
 }
Пример #2
0
 public WPFNavigationService(IRegionManager regionManager, IRegionNavigationService currentRegion, Prism.Services.Dialogs.IDialogService dialogService)
 {
     RegionManager = regionManager ?? throw new ArgumentNullException(nameof(regionManager));
     CurrentRegion = currentRegion ?? throw new ArgumentNullException(nameof(currentRegion));
     DialogService = dialogService ?? throw new ArgumentNullException(nameof(dialogService));
 }
Пример #3
0
 public MainWindow(Prism.Services.Dialogs.IDialogService dialogService)
 {
     InitializeComponent();
     _dialogService = dialogService;
 }