Ejemplo n.º 1
0
        public MainViewModel(int visibleItems) : base()
        {
            Title                = "RODIN info";
            Actions1             = ViewModelFactory.NewList(new Actions1Section());
            RechercheBingIntegre = ViewModelFactory.NewList(new RechercheBingIntegreSection(), visibleItems);
            SOCIAL               = ViewModelFactory.NewList(new SOCIALSection());
            Lycee                = ViewModelFactory.NewList(new LyceeSection());
            COLLEGE              = ViewModelFactory.NewList(new COLLEGESection());
            CLASSESPREPAS        = ViewModelFactory.NewList(new CLASSESPREPASSection());
            CITESCOLAIRE         = ViewModelFactory.NewList(new CITESCOLAIRESection());
            Actu = ViewModelFactory.NewList(new ActuSection(), 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;
 }