private void lbCreateMatch_Click(object sender, EventArgs e) { CreateMatch matchForm = new CreateMatch(); var result = matchForm.ShowDialog(); if (result == DialogResult.OK) { SetMatchTable(); } }
private void lbUpdateMatch_Click(object sender, EventArgs e) { var selectedRow = dataGridViewX1.SelectedRows[0]; if (selectedRow == null) { return; } var matchId = selectedRow.Cells[0].Value.ToString(); CreateMatch matchForm = new CreateMatch(matchId); var result = matchForm.ShowDialog(); if (result == DialogResult.OK) { SetMatchTable(); } }