public FavoritesViewModel() : base() { PageTitle = "Favorites"; Tours = ListViewModel.CreateNew(Singleton <ToursConfig> .Instance); Discography = ListViewModel.CreateNew(Singleton <DiscographyConfig> .Instance); ShowRoamingWarning = Singleton <UserFavorites> .Instance.RoamingQuota == 0; }
public SearchViewModel() : base() { PageTitle = "DJNano Show"; Tours = ListViewModel.CreateNew(Singleton <ToursConfig> .Instance); Videos = ListViewModel.CreateNew(Singleton <VideosConfig> .Instance); Gallery = ListViewModel.CreateNew(Singleton <GalleryConfig> .Instance); Instagram = ListViewModel.CreateNew(Singleton <InstagramConfig> .Instance); YouTube = ListViewModel.CreateNew(Singleton <YouTubeConfig> .Instance); Facebook = ListViewModel.CreateNew(Singleton <FacebookConfig> .Instance); Twitter = ListViewModel.CreateNew(Singleton <TwitterConfig> .Instance); Discography = ListViewModel.CreateNew(Singleton <DiscographyConfig> .Instance); DiscographyTracks = ListViewModel.CreateNew(Singleton <DiscographyTracksConfig> .Instance); Biography = ListViewModel.CreateNew(Singleton <BiographyConfig> .Instance); }
public MainViewModel(int visibleItems) : base() { PageTitle = "DJNano Show"; Tours = ListViewModel.CreateNew(Singleton <ToursConfig> .Instance, visibleItems); Videos = ListViewModel.CreateNew(Singleton <VideosConfig> .Instance, visibleItems); Gallery = ListViewModel.CreateNew(Singleton <GalleryConfig> .Instance, visibleItems); Social = ListViewModel.CreateNew(Singleton <SocialConfig> .Instance); Discography = ListViewModel.CreateNew(Singleton <DiscographyConfig> .Instance, visibleItems); Biography = ListViewModel.CreateNew(Singleton <BiographyConfig> .Instance, visibleItems); Actions = new List <ActionInfo>(); if (GetViewModels().Any(vm => !vm.HasLocalData)) { Actions.Add(new ActionInfo { Command = new RelayCommand(Refresh), Style = ActionKnownStyles.Refresh, Name = "RefreshButton", ActionType = ActionType.Primary }); } }