Most controls in CreateTournamentForm are implemented

This commit is contained in:
2020-04-05 23:53:11 +02:00
parent 8ac467e2f0
commit af9ee4113d
7 changed files with 147 additions and 42 deletions

View File

@ -14,9 +14,12 @@ namespace TrackerUI
{
public partial class CreatePrizeForm : Form
{
public CreatePrizeForm()
IPrizeRequester callingForm;
public CreatePrizeForm(IPrizeRequester caller)
{
InitializeComponent();
callingForm = caller;
}
private void createPrizeButton_Click(object sender, EventArgs e)
@ -31,10 +34,12 @@ namespace TrackerUI
GlobalConfig.Connection.CreatePrize(model);
placeNameValue.Text = "";
placeNumberValue.Text = "";
prizeAmountValue.Text = "0";
prizePercentageValue.Text = "0";
callingForm.PrizeComplete(model);
this.Close();
//placeNameValue.Text = "";
//placeNumberValue.Text = "";
//prizeAmountValue.Text = "0";
//prizePercentageValue.Text = "0";
}
else
{