private void metroButton2_Click_1(object sender, EventArgs e) { int row = teamGrid.CurrentCell.RowIndex; var ID = Int32.Parse(teamGrid[teamGrid.ColumnCount - 1, row].Value.ToString()); Team handler = repo.GetById(ID); var view = new TeamCreate(discipline,handler); view.Show(); }
private void metroButton2_Click_1(object sender, EventArgs e) { int row = teamGrid.CurrentCell.RowIndex; var ID = Int32.Parse(teamGrid[teamGrid.ColumnCount - 1, row].Value.ToString()); Team handler = repo.GetById(ID); var view = new TeamCreate(discipline, handler); view.Show(); }
private void addTeam_Click(object sender, EventArgs e) { var view = new TeamCreate(discipline); view.Show(); }