Ejemplo n.º 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);
     }
                ));
 }
Ejemplo n.º 2
0
 public MyEventsScreen(
     MyEventsScreenActionModel actionModel = null,
     Key key = null
     ) : base(key)
 {
     this.actionModel = actionModel;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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);
     }
                ));
 }