Exemplo n.º 1
0
        private void playersToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var teamId         = 0;
            var frmPlayersForm = new PlayerForm(db, teamId);

            frmPlayersForm.ShowDialog();
        }
Exemplo n.º 2
0
        private void btnListPlayers_Click(object sender, EventArgs e)
        {
            var team          = (Team)lstTeams.SelectedItem;
            var teamId        = team.Id;
            var frmPlayerform = new PlayerForm(db, teamId);

            frmPlayerform.ShowDialog();
        }