Create Tournament screen is wired up an is functioning

This commit is contained in:
2020-05-18 21:29:14 +02:00
parent bcb1a561d4
commit 1207617a7c
8 changed files with 334 additions and 143 deletions

View File

@ -133,6 +133,12 @@ namespace TrackerWPFUI.ViewModels
SelectedTeamMembersIsVisible = false;
AddPersonIsVisible = true;
}
public void CancelCreation()
{
EventAggregationProvider.TrackerEventAggregator.PublishOnUIThread(new TeamModel());
this.TryClose();
}
public bool CanCreateTeam
{
get
@ -163,7 +169,8 @@ namespace TrackerWPFUI.ViewModels
GlobalConfig.Connection.CreateTeam(t);
//TODO - Pass the team back to the parent and close the form
EventAggregationProvider.TrackerEventAggregator.PublishOnUIThread(t);
this.TryClose();
}
public void Handle(PersonModel message)