public SearchViewModel() : base() { Title = "ZoDream"; Albums = ViewModelFactory.NewList(new AlbumsSection()); Concerts = ViewModelFactory.NewList(new ConcertsSection()); BandNews = ViewModelFactory.NewList(new BandNewsSection()); Gallery = ViewModelFactory.NewList(new GallerySection()); TheyAre = ViewModelFactory.NewList(new TheyAreSection()); }
public MainViewModel(int visibleItems) : base() { Title = "ZoDream ¿Í»§¶Ë"; Albums = ViewModelFactory.NewList(new AlbumsSection(), visibleItems); Concerts = ViewModelFactory.NewList(new ConcertsSection(), visibleItems); BandNews = ViewModelFactory.NewList(new BandNewsSection(), visibleItems); Gallery = ViewModelFactory.NewList(new GallerySection(), visibleItems); Links = ViewModelFactory.NewList(new LinksSection()); TheyAre = ViewModelFactory.NewList(new TheyAreSection(), visibleItems); if (GetViewModels().Any(vm => !vm.HasLocalData)) { Actions.Add(new ActionInfo { Command = RefreshCommand, Style = ActionKnownStyles.Refresh, Name = "RefreshButton", ActionType = ActionType.Primary }); } }