private void metroButton2_Click(object sender, EventArgs e) { int row = playersGrid.CurrentCell.RowIndex; var ID = Int32.Parse(playersGrid[playersGrid.ColumnCount - 1, row].Value.ToString()); Player handler = repo.GetById(ID); var view = new PlayerCreate(handler); view.Show(); }
private void addPlayer_Click(object sender, EventArgs e) { var view = new PlayerCreate(); view.Show(); }