Esempio n. 1
0
        public ShellViewModel(IEventAggregator eventAggregator, ISubsonicService subsonicService, ICustomFrameAdapter navigationService,
                              IToastNotificationService notificationService, IDialogNotificationService dialogNotificationService, IStorageService storageService, IWinRTWrappersService winRTWrappersService)
        {
            _eventAggregator          = eventAggregator;
            SubsonicService           = subsonicService;
            NavigationService         = navigationService;
            NotificationService       = notificationService;
            DialogNotificationService = dialogNotificationService;
            StorageService            = storageService;
            WinRTWrappersService      = winRTWrappersService;

            eventAggregator.Subscribe(this);
        }
Esempio n. 2
0
 public ErrorDialogViewModel(
     IWinRTWrappersService winRTWrappersService,
     INavigationService navigationService,
     IDialogNotificationService dialogNotificationService,
     IResourceService resourceService,
     IDialogService dialogService)
 {
     _dialogNotificationService = dialogNotificationService;
     _resourceService           = resourceService;
     _dialogService             = dialogService;
     IsHidden            = true;
     WinRTWrapperService = winRTWrappersService;
     WinRTWrapperService.RegisterShareRequestHandler(OnShareRequested);
     NavigationService = navigationService;
     DisplayName       = "Something went wrong ;(";
 }
 public ErrorDialogViewModel(
     IWinRTWrappersService winRTWrappersService,
     INavigationService navigationService,
     IDialogNotificationService dialogNotificationService,
     IResourceService resourceService,
     IDialogService dialogService)
 {
     _dialogNotificationService = dialogNotificationService;
     _resourceService = resourceService;
     _dialogService = dialogService;
     IsHidden = true;
     WinRTWrapperService = winRTWrappersService;
     WinRTWrapperService.RegisterShareRequestHandler(OnShareRequested);
     NavigationService = navigationService;
     DisplayName = "Something went wrong ;(";
 }
Esempio n. 4
0
        public ShellViewModel(IEventAggregator eventAggregator, ISubsonicService subsonicService, ICustomFrameAdapter navigationService,
            IToastNotificationService notificationService, IDialogNotificationService dialogNotificationService, IStorageService storageService, IWinRTWrappersService winRTWrappersService)
        {
            _eventAggregator = eventAggregator;
            SubsonicService = subsonicService;
            NavigationService = navigationService;
            NotificationService = notificationService;
            DialogNotificationService = dialogNotificationService;
            StorageService = storageService;
            WinRTWrappersService = winRTWrappersService;

            eventAggregator.Subscribe(this);
        }