Example #1
0
 private void MapDispatchToProps(IStore <RootState> store, ProjectsProps props)
 {
     props.OnRefresh = EventCallback.Factory.Create(this, () => HandleRefresh(store));
     props.OnSave    = EventCallback.Factory.Create <VstsProjectViewModel>(this, p => HandleSave(store, p));
     props.OnDelete  = EventCallback.Factory.Create <VstsProjectViewModel>(this, p => HandleDelete(store, p));
 }
Example #2
0
 private void MapStateToProps(RootState state, ProjectsProps props)
 {
     props.Items = GetProjects(state);
     props.OrganizationsOptions = GetOrganizationOptions(state);
     props.IdentitiesOptions    = GetIdentityOptions(state);
 }