private void createTeamButton_Click(object sender, EventArgs e) { TeamModel model = new TeamModel { TeamName = teamNameValue.Text, TeamMembers = selectedTeamMembers }; GlobalConfig.Connection.CreateTeam(model); TeamCreated?.Invoke(model); this.Close(); }
protected virtual void OnTeamCreated(TeamCreatedArgs e) => TeamCreated?.Invoke(this, e);