コード例 #1
0
        private void tsmiPlayers_Click(object sender, EventArgs e)
        {
            var         teamId         = 0;
            PlayersForm frmPlayersForm = new PlayersForm(db, teamId);

            frmPlayersForm.ShowDialog();
        }
コード例 #2
0
        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();
        }
コード例 #3
0
        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();
        }
コード例 #4
0
        private void playersToolStripMenuItem_Click(object sender, EventArgs e)
        {
            PlayersForm frm = new PlayersForm(db);

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

            frmPlayers.ShowDialog();
        }