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); }
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 ;("; }