private void EditTeams_Click(object sender, EventArgs e) { if (allTeamsList.FocusedItem != null) { ListViewItem firstSelectedItem = allTeamsList.FocusedItem; string teamName = firstSelectedItem.SubItems[0].Text; Team T = DBLayer.Teams.Read(teamName); DialogTeams dialog = new DialogTeams(E, T); dialog.Show(); } }
private void AddTeams_Click(object sender, EventArgs e) { DialogTeams dialog = new DialogTeams(); dialog.Show(); }