Exemplo n.º 1
0
        protected BaseEventsViewModel(ISessionService sessionService)
        {
            SessionService = sessionService;
            Title          = "Events";

            Items            = InternalItems.CreateDerivedCollection(CreateEventTextBlocks);
            ReportRepository = true;

            LoadCommand = ReactiveCommand.CreateAsyncTask(t =>
                                                          InternalItems.SimpleCollectionLoad(CreateRequest(),
                                                                                             x => LoadMoreCommand = x == null ? null : ReactiveCommand.CreateAsyncTask(_ => x())));
        }