Example #1
0
        public MainViewModel(int visibleItems) : base()
        {
            Title  = "Jamia Nadwiyya";
            Events = ViewModelFactory.NewList(new EventsSection(), visibleItems);

            if (GetViewModels().Any(vm => !vm.HasLocalData))
            {
                Actions.Add(new ActionInfo
                {
                    Command    = RefreshCommand,
                    Style      = ActionKnownStyles.Refresh,
                    Name       = "RefreshButton",
                    ActionType = ActionType.Primary
                });
            }
        }
Example #2
0
 public SearchViewModel() : base()
 {
     Title  = "Jamia Nadwiyya";
     Events = ViewModelFactory.NewList(new EventsSection());
 }