Create Tournament screen is wired up an is functioning
This commit is contained in:
@ -53,6 +53,12 @@ namespace TrackerWPFUI.ViewModels
|
||||
}
|
||||
}
|
||||
|
||||
public void CancelCreation()
|
||||
{
|
||||
EventAggregationProvider.TrackerEventAggregator.PublishOnCurrentThread(new PrizeModel());
|
||||
this.TryClose();
|
||||
}
|
||||
|
||||
public bool CanCreatePrize(int placeNumber, string placeName, decimal prizeAmount, double prizePercentage)
|
||||
{
|
||||
return ValidateForm(placeNumber, placeName, prizeAmount, prizePercentage);
|
||||
@ -69,8 +75,8 @@ namespace TrackerWPFUI.ViewModels
|
||||
};
|
||||
GlobalConfig.Connection.CreatePrize(model);
|
||||
|
||||
//TODO Close out the form and alert the calling form
|
||||
|
||||
EventAggregationProvider.TrackerEventAggregator.PublishOnCurrentThread(model);
|
||||
this.TryClose();
|
||||
}
|
||||
|
||||
private bool ValidateForm(int placeNumber, string placeName, decimal prizeAmount, double prizePercentage)
|
||||
|
||||
Reference in New Issue
Block a user