public ToastNotificationServiceTest() { _wpfTextView = CreateTextView(); _editorFormatMap = CompositionContainer.GetExportedValue<IEditorFormatMapService>().GetEditorFormatMap(_wpfTextView); _toastNotificationServiceRaw = new ToastNotificationService(_wpfTextView, _editorFormatMap); _toastNotificationService = _toastNotificationServiceRaw; _toastControl = _toastNotificationServiceRaw.ToastControl; }
public SettingsViewModel(ISubsonicService subsonicService, IToastNotificationService notificationService, IStorageService storageService, ICustomFrameAdapter navigationService) { _subsonicService = subsonicService; _notificationService = notificationService; _storageService = storageService; _navigationService = navigationService; }
internal ConflictingKeyBindingMargin(IKeyBindingService service, IVimApplicationSettings vimApplicationSettings, IToastNotificationService toastNotificationService) { _keyBindingService = service; _vimApplicationSettings = vimApplicationSettings; _control = new ConflictingKeyBindingMarginControl(); _control.ConfigureClick += OnConfigureClick; _keyBindingService.ConflictingKeyBindingStateChanged += OnStateChanged; _toastNotificationService = toastNotificationService; _toastNotificationService.TextView.Closed += OnTextViewClosed; OnStateChanged(this, EventArgs.Empty); }
public AgendaViewModel( IReactiveTVShowTimeApiService tvshowtimeApiService, IHamburgerMenuService hamburgerMenuService, IEventService eventService, IToastNotificationService toastNotificationService) { _tvshowtimeApiService = tvshowtimeApiService; _hamburgerMenuService = hamburgerMenuService; _eventService = eventService; _toastNotificationService = toastNotificationService; SelectEpisodeCommand = new RelayCommand <Episode>(SelectEpisode); Refresh(); }
public ShowViewModel( IReactiveTVShowTimeApiService tvshowtimeApiService, IEventService eventService, IToastNotificationService toastNotificationService, IHamburgerMenuService hamburgerMenuService) { _tvshowtimeApiService = tvshowtimeApiService; _eventService = eventService; _toastNotificationService = toastNotificationService; _hamburgerMenuService = hamburgerMenuService; GoToPreviousSeasonCommand = new RelayCommand(GoToPreviousSeason); GoToNextSeasonCommand = new RelayCommand(GoToNextSeason); SelectEpisodeCommand = new RelayCommand <Episode>(SelectEpisode); }
public NewTranslationViewModel(INavigationService navigationService, IApiService apiService, IDictionaryService dictionaryService, IRoamingStorageService roamingStorageService, ILocalStorageService localStorageService, IToastNotificationService toastNotificationService, IAnalyticsService analyticsService) { _navigationService = navigationService; _apiService = apiService; _dictionaryService = dictionaryService; _roamingStorageService = roamingStorageService; _localStorageService = localStorageService; _toastNotificationService = toastNotificationService; _analyticsService = analyticsService; InitializeAsync(); Messenger.Default.Register<SelectDictionaryMessage>(this, (message) => { CurrentDictionary = message.Dictionary; }); }
public EpisodeViewModel( IReactiveTVShowTimeApiService tvshowtimeApiService, IEventService eventService, IHamburgerMenuService hamburgerMenuService, IToastNotificationService toastNotificationService) { _tvshowtimeApiService = tvshowtimeApiService; _eventService = eventService; _hamburgerMenuService = hamburgerMenuService; _toastNotificationService = toastNotificationService; ToggleWatchCommand = new RelayCommand(ToggleWatch); GoToPreviousEpisodeCommand = new RelayCommand(GoToPreviousEpisode); GoToNextEpisodeCommand = new RelayCommand(GoToNextEpisode); ToggleEmotionCommand = new RelayCommand <Emotion>(ToggleEmotion); SelectShowCommand = new RelayCommand <Episode>(SelectShow); }
public ExploreViewModel( IReactiveTVShowTimeApiService tvshowtimeApiService, IEventService eventService, IHamburgerMenuService hamburgerMenuService, IToastNotificationService toastNotificationService) { _tvshowtimeApiService = tvshowtimeApiService; _eventService = eventService; _hamburgerMenuService = hamburgerMenuService; _toastNotificationService = toastNotificationService; SelectionChangedCommand = new RelayCommand <int>(SelectionChanged); ToggleFollowShowCommand = new RelayCommand <ExploreShowViewModel>(ToggleFollowShow); SelectShowCommand = new RelayCommand <long>(SelectShow); LoadTrendingShows(_currentPage); }
public CollectionViewModel( IReactiveTVShowTimeApiService tvshowtimeApiService, IEventService eventService, IHamburgerMenuService hamburgerMenuService, IToastNotificationService toastNotificationService) { _tvshowtimeApiService = tvshowtimeApiService; _eventService = eventService; _hamburgerMenuService = hamburgerMenuService; _toastNotificationService = toastNotificationService; SelectShowCommand = new RelayCommand <Show>(SelectShow); _allGroup = new ShowCollectionGroup { Name = "All" }; _lateGroup = new ShowCollectionGroup { Name = "Late" }; _upToDateGroup = new ShowCollectionGroup { Name = "Up to date" }; _continuingGroup = new ShowCollectionGroup { Name = "Continuing" }; _endedGroup = new ShowCollectionGroup { Name = "Ended" }; _archivedGroup = new ShowCollectionGroup { Name = "Archived" }; Groups.Add(_allGroup); Groups.Add(_lateGroup); Groups.Add(_upToDateGroup); Groups.Add(_continuingGroup); Groups.Add(_endedGroup); Groups.Add(_archivedGroup); Refresh(); }
public void RegisterToastNotficationService(IToastNotificationService toastNotificationService) { MainViewModel mainViewModel = viewModelLocator.Main; mainViewModel.ToastNotificationService = toastNotificationService; }
public SomeViewModel(IToastNotificationService toastNotficationService) { _toastNotficationService = toastNotficationService; }
public VideoPlaybackViewModel(IToastNotificationService notificationService) { _notificationService = notificationService; }
public EmbededVideoPlaybackViewModel(IToastNotificationService notificationService) : base(notificationService) { }
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 AppViewModel(IToastNotificationService toastNotificationService) { _toastNotificationService = toastNotificationService; }
public FullScreenVideoPlaybackViewModel(IToastNotificationService notificationService) : base(notificationService) { }