Beispiel #1
0
 public SearchViewModel() : base()
 {
     Title    = "Агрегатор новостей Тулы";
     MySLO1   = ViewModelFactory.NewList(new MySLO1Section());
     MySLO2   = ViewModelFactory.NewList(new MySLO2Section());
     MySLO3   = ViewModelFactory.NewList(new MySLO3Section());
     Section1 = ViewModelFactory.NewList(new Section1Section());
     Section2 = ViewModelFactory.NewList(new Section2Section());
     Section3 = ViewModelFactory.NewList(new Section3Section());
     Section4 = ViewModelFactory.NewList(new Section4Section());
     Section5 = ViewModelFactory.NewList(new Section5Section());
     Section6 = ViewModelFactory.NewList(new Section6Section());
     Section7 = ViewModelFactory.NewList(new Section7Section());
     Section8 = ViewModelFactory.NewList(new Section8Section());
 }
Beispiel #2
0
        public MainViewModel(int visibleItems) : base()
        {
            Title   = "Mr.loading";
            MyBlog  = ViewModelFactory.NewList(new MyBlogSection(), visibleItems);
            AboutMe = ViewModelFactory.NewList(new AboutMeSection(), visibleItems);

            if (GetViewModels().Any(vm => !vm.HasLocalData))
            {
                Actions.Add(new ActionInfo
                {
                    Command    = RefreshCommand,
                    Style      = ActionKnownStyles.Refresh,
                    Name       = "RefreshButton",
                    ActionType = ActionType.Primary
                });
            }
        }
        public MainViewModel(int visibleItems) : base()
        {
            Title    = "Агрегатор новостей Тулы";
            MySLO    = ViewModelFactory.NewList(new MySLOSection());
            Section1 = ViewModelFactory.NewList(new Section1Section(), visibleItems);
            Section2 = ViewModelFactory.NewList(new Section2Section(), visibleItems);
            Section3 = ViewModelFactory.NewList(new Section3Section(), visibleItems);
            Section4 = ViewModelFactory.NewList(new Section4Section(), visibleItems);
            Section5 = ViewModelFactory.NewList(new Section5Section(), visibleItems);
            Section6 = ViewModelFactory.NewList(new Section6Section(), visibleItems);
            Section7 = ViewModelFactory.NewList(new Section7Section(), visibleItems);
            Section8 = ViewModelFactory.NewList(new Section8Section(), visibleItems);

            if (GetViewModels().Any(vm => !vm.HasLocalData))
            {
                Actions.Add(new ActionInfo
                {
                    Command    = RefreshCommand,
                    Style      = ActionKnownStyles.Refresh,
                    Name       = "RefreshButton",
                    ActionType = ActionType.Primary
                });
            }
        }
 public SearchViewModel() : base()
 {
     Title   = "Mr.loading";
     MyBlog  = ViewModelFactory.NewList(new MyBlogSection());
     AboutMe = ViewModelFactory.NewList(new AboutMeSection());
 }