private void btnCreateLeague_Click(object sender, EventArgs e) { //TODO: validation qu'une telle ligue n'existe pas déjà! panCreateNewLeague.Enabled = false; panCreateNewTeam.Visible = true; panCreateNewTeam.Enabled = true; txtTeamName.Text = "Lame unorigninal team name"; txtTeamOwnerName.Text = "Lame unoriginal your name"; currentLeague = new League(txtNewLeagueName.Text, Convert.ToInt32(cmbNbrTeams.SelectedItem), Convert.ToInt32(cmbNbrTeams.SelectedItem) / 2, 162); }
public Team(string _name, string _owner, League _league) { name = _name; league = _league; owner = _owner; }
private void newGameToolStripMenuItem_Click(object sender, EventArgs e) { if (isCurrentLeagueComplete) { saveGame(); } //TODO: hide other stuff currentLeague = null; panCreateNewLeague.Visible = true; panCreateNewLeague.Enabled = true; panInitialPlayerDraft.Visible = false; panCreateNewTeam.Visible = false; txtNewLeagueName.Text = "Lame unorigninal league name"; }