예제 #1
0
 private void MapDispatchToProps(IStore <RootState> store, ProfilesProps props)
 {
     props.OnRefresh           = EventCallback.Factory.Create(this, () => HandleRefresh(store));
     props.OnChange            = EventCallback.Factory.Create <ProfileViewModel>(this, p => HandleSave(store, p));
     props.OnDelete            = EventCallback.Factory.Create <ProfileViewModel>(this, p => HandleDelete(store, p));
     props.OnFetchPullRequests = EventCallback.Factory.Create <IEnumerable <Guid> >(this, m => HandleFetchPullRequests(store, m));
     props.OnFetchWorkItems    = EventCallback.Factory.Create <IEnumerable <Guid> >(this, m => HandleFetchWorkItems(store, m));
     props.OnResetPullRequests = EventCallback.Factory.Create <IEnumerable <Guid> >(this, m => HandleResetPullRequests(store, m));
     props.OnResetWorkItems    = EventCallback.Factory.Create <IEnumerable <Guid> >(this, m => HandleResetWorkItems(store, m));
 }
예제 #2
0
 private void MapStateToProps(RootState state, ProfilesProps props)
 {
     props.Items               = GetProfiles(state);
     props.MembersOptions      = GetMemberOptions(state);
     props.RepositoriesOptions = GetRepositoriesOptions(state);
 }