Esempio n. 1
0
 public SettingsViewModel(ISubsonicService subsonicService, IToastNotificationService notificationService,
     IStorageService storageService, ICustomFrameAdapter navigationService)
 {
     _subsonicService = subsonicService;
     _notificationService = notificationService;
     _storageService = storageService;
     _navigationService = navigationService;
 }
Esempio n. 2
0
 public SettingsViewModel(ISubsonicService subsonicService, IToastNotificationService notificationService,
                          IStorageService storageService, ICustomFrameAdapter navigationService)
 {
     _subsonicService     = subsonicService;
     _notificationService = notificationService;
     _storageService      = storageService;
     _navigationService   = navigationService;
 }
Esempio n. 3
0
 public DefaultBottomBarViewModel(ICustomFrameAdapter navigationService, IEventAggregator eventAggregator)
 {
     _navigationService = navigationService;
     _eventAggregator   = eventAggregator;
     _eventAggregator.Subscribe(this);
     SelectedItems = new ObservableCollection <object>();
     SelectedItems.CollectionChanged += OnSelectedItemsChanged;
     Navigate = () => _navigationService.NavigateToViewModel <PlaybackViewModel>();
 }
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);
        }
 public DefaultBottomBarViewModel(ICustomFrameAdapter navigationService, IEventAggregator eventAggregator)
 {
     _navigationService = navigationService;
     _eventAggregator = eventAggregator;
     _eventAggregator.Subscribe(this);
     SelectedItems = new ObservableCollection<object>();
     SelectedItems.CollectionChanged += OnSelectedItemsChanged;
     Navigate = () => _navigationService.NavigateToViewModel<PlaybackViewModel>();
 }
Esempio n. 6
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);
        }