示例#1
0
        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);
        }
示例#2
0
文件: Team.cs 项目: sathalom/BBSim
 public Team(string _name, string _owner, League _league)
 {
     name = _name;
     league = _league;
     owner = _owner;
 }
示例#3
0
        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";
        }