Create team form is ready (nearly)

This commit is contained in:
2020-04-02 23:22:00 +02:00
parent 9d80089a23
commit eecd527e69
7 changed files with 132 additions and 2 deletions

View File

@ -265,6 +265,7 @@
this.createTeamButton.TabIndex = 23;
this.createTeamButton.Text = "Create Team";
this.createTeamButton.UseVisualStyleBackColor = true;
this.createTeamButton.Click += new System.EventHandler(this.createTeamButton_Click);
//
// CreateTeamForm
//

View File

@ -121,5 +121,16 @@ namespace TrackerUI
}
}
private void createTeamButton_Click(object sender, EventArgs e)
{
TeamModel t = new TeamModel();
t.TeamName = createdTeamNameValue.Text;
t.TeamMembers = selectedTeamMembers;
t = GlobalConfig.Connection.CreateTeam(t);
// TODO - if we arent closing the form after insertion , reset the form
}
}
}