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();
        }
Example #5
0
        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);
        }
Example #6
0
        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;
            });
        }
Example #7
0
        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);
        }
Example #8
0
        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();
        }
        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);
        }
Example #11
0
        public void RegisterToastNotficationService(IToastNotificationService toastNotificationService)
        {
            MainViewModel mainViewModel = viewModelLocator.Main;

            mainViewModel.ToastNotificationService = toastNotificationService;
        }
Example #12
0
	public SomeViewModel(IToastNotificationService toastNotficationService)
	{
		_toastNotficationService = toastNotficationService;
	}
 public VideoPlaybackViewModel(IToastNotificationService notificationService)
 {
     _notificationService = notificationService;
 }
 public EmbededVideoPlaybackViewModel(IToastNotificationService notificationService)
     : base(notificationService)
 {
 }
Example #15
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);
        }
Example #16
0
 public EmbededVideoPlaybackViewModel(IToastNotificationService notificationService)
     : base(notificationService)
 {
 }
Example #17
0
 public AppViewModel(IToastNotificationService toastNotificationService)
 {
     _toastNotificationService = toastNotificationService;
 }
Example #18
0
 public SomeViewModel(IToastNotificationService toastNotficationService)
 {
     _toastNotficationService = toastNotficationService;
 }
Example #19
0
 public AppViewModel(IToastNotificationService toastNotificationService)
 {
     _toastNotificationService = toastNotificationService;
 }
Example #20
0
 public FullScreenVideoPlaybackViewModel(IToastNotificationService notificationService)
     : base(notificationService)
 {
 }
 public FullScreenVideoPlaybackViewModel(IToastNotificationService notificationService)
     : base(notificationService)
 {
 }
Example #22
0
 public VideoPlaybackViewModel(IToastNotificationService notificationService)
 {
     _notificationService = notificationService;
 }