Exemple #1
0
 public override Widget build(BuildContext context)
 {
     return(new StoreConnector <AppState, MyEventsScreenViewModel>(
                converter: state => new MyEventsScreenViewModel {
         futureListLoading = state.mineState.futureListLoading,
         futureEventsList = state.mineState.futureEventsList,
         futureEventTotal = state.mineState.futureEventTotal,
         placeDict = state.placeState.placeDict
     },
                builder: (context1, viewModel, dispatcher) => {
         var actionModel = new MyEventsScreenActionModel {
             mainRouterPop = () => dispatcher.dispatch(new MainNavigatorPopAction()),
             pushToEventDetail = (id, type) =>
                                 dispatcher.dispatch(new MainNavigatorPushToEventDetailAction
             {
                 eventId = id, eventType = type
             }),
             startFetchMyFutureEvents = () => dispatcher.dispatch(new StartFetchMyFutureEventsAction()),
             fetchMyFutureEvents = pageNumber =>
                                   dispatcher.dispatch <IPromise>(Actions.fetchMyFutureEvents(pageNumber))
         };
         return new MyFutureEventsScreen(viewModel, actionModel);
     }
                ));
 }
Exemple #2
0
 public MyEventsScreen(
     MyEventsScreenActionModel actionModel = null,
     Key key = null
     ) : base(key)
 {
     this.actionModel = actionModel;
 }
Exemple #3
0
 public MyPastEventsScreen(
     MyEventsScreenViewModel viewModel     = null,
     MyEventsScreenActionModel actionModel = null,
     Key key = null
     ) : base(key: key)
 {
     this.viewModel   = viewModel;
     this.actionModel = actionModel;
 }
 public MyFutureEventsScreen(
     MyEventsScreenViewModel viewModel     = null,
     MyEventsScreenActionModel actionModel = null,
     string mode = null,
     Key key     = null
     ) : base(key: key)
 {
     this.viewModel   = viewModel;
     this.actionModel = actionModel;
     this.mode        = mode;
 }
Exemple #5
0
 public override Widget build(BuildContext context)
 {
     return(new StoreConnector <AppState, object>(
                converter: state => null,
                builder: (context1, viewModel, dispatcher) => {
         var actionModel = new MyEventsScreenActionModel {
             mainRouterPop = () => dispatcher.dispatch(new MainNavigatorPopAction())
         };
         return new MyEventsScreen(actionModel);
     }
                ));
 }