private void tsmiPlayers_Click(object sender, EventArgs e)
        {
            var         teamId         = 0;
            PlayersForm frmPlayersForm = new PlayersForm(db, teamId);

            frmPlayersForm.ShowDialog();
        }
        private void btnListPlayers_Click(object sender, EventArgs e)
        {
            var team           = (Team)lstTeams.SelectedItem;
            var teamId         = team.Id;
            var frmPlayersForm = new PlayersForm(db, teamId);

            frmPlayersForm.ShowDialog();
        }
        private void btnAddPlayer_Click(object sender, EventArgs e)
        {
            if (dgvTeams.Rows.Count < 1)
            {
                MessageBox.Show("There is no team for check player list");
                return;
            }
            int         id    = (int)dgvTeams.SelectedRows[0].Cells[0].Value;
            Team        team  = db.Teams.Find(id);
            PlayersForm form2 = new PlayersForm(db, team.TeamName);

            form2.ShowDialog();
        }
        private void playersToolStripMenuItem_Click(object sender, EventArgs e)
        {
            PlayersForm frm = new PlayersForm(db);

            frm.ShowDialog();
        }
Exemple #5
0
        private void tsmiPlayers_Click(object sender, EventArgs e)
        {
            var frmPlayers = new PlayersForm(db);

            frmPlayers.ShowDialog();
        }