public GeneralSettingsViewModel()
 {
     HeaderInfo = new HeaderInfo
     {
         Title = "General settings",
         IconUri = AppIcons.Settings.ToString()
     };
 }
        public SpotifySettingsPageModel(ILoadingIndicatorService loadingIndicator)
        {
            HeaderInfo = new HeaderInfo();
            HeaderInfo.Title = "Spotify";
            //HeaderInfo.IconUri = "pack://application:,,,/Torshify.Radio.Spotify;component/Resources/Spotify_Logo.png";

            _sections = new ObservableCollection<ISettingsSection>();
            _sections.Add(new SpotifyLoginSection(loadingIndicator));
        }
        public ThemeSection()
        {
            HeaderInfo = new HeaderInfo
            {
                Title = "Theme"
            };

            UI = new ThemeSectionView
            {
                DataContext = this
            };

            _currentAccentColor = (Color)Application.Current.TryFindResource(AppTheme.AccentColorKey);
        }
        public TrackSourceSection()
        {
            HeaderInfo = new HeaderInfo
            {
                Title = "Track sources"
            };

            UI = new TrackSourceSectionView
            {
                DataContext = this
            };

            _trackSourcePriority = new ObservableCollection<TrackSourceConfig>();
        }
 public HotMixListViewModel()
 {
     _header = new HeaderInfo
               {
                   Title = "Hot",
                   IsSelectedAction = isSelected =>
                                      {
                                          if (!Mixes.Any() && isSelected)
                                          {
                                              SearchForMixes(SortType);
                                          }
                                      }
               };
 }
        public SpotifyLoginSection(ILoadingIndicatorService loadingIndicator)
        {
            LoadingIndicator = loadingIndicator;
            HeaderInfo = new HeaderInfo
            {
                Title = "Login details"
            };

            UI = new SpotifyLoginSectionView
            {
                Model = this
            };

            LogOutCommand = new AutomaticCommand(ExecuteLogOut, CanExecuteLogOut);
        }
        public HotkeySection()
        {
            HeaderInfo = new HeaderInfo
            {
                Title = "Global hotkeys"
            };

            UI = new HotkeySectionView
            {
                DataContext = this
            };

            AddHotkeyCommand = new StaticCommand(ExecuteAddHotkey);
            RemoveHotkeyCommand = new AutomaticCommand<GlobalHotkey>(ExecuteRemoveHotkey, CanExecuteRemoveHotkey);
            RestoreDefaultHotkeysCommand = new StaticCommand(ExecuteRestoreDefaultHotkeys);
        }
 public MainTabViewModel()
 {
     _headerInfo = new HeaderInfo { Title = "Mixes" };
     _mixes = new ObservableCollection<Mix>();
 }