示例#1
0
        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
                });
            }
        }
 public DetailRelatedViewModel(Section <TSchema> section, ListViewModel list) : base(section)
 {
     List = list;
 }