Пример #1
0
 private void MapDispatchToProps(IStore <RootState> store, ReportsListProps props)
 {
     props.OnRefresh = EventCallback.Factory.Create(this, () => HandleRefresh(store));
     props.OnDelete  = EventCallback.Factory.Create <ReportViewModel>(this, r => HandleDelete(store, r));
     props.OnView    = EventCallback.Factory.Create <ReportViewModel>(this, r => HandleView(store, r));
 }
Пример #2
0
 private void MapStateToProps(RootState state, ReportsListProps props)
 {
     props.Reports = GetReports(state);
 }