Example #1
0
 private void button3_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("Вы уверены что хотите удалить данный турнир?", "Сообщение", MessageBoxButtons.YesNo) == DialogResult.Yes)
     {
         WorkWithBD.DeleteTournament(Convert.ToString(dataGridView1.CurrentRow.Cells[0].Value));
         dataGridView1.Rows.Clear();
         WorkWithBD.ReadTournamentForDataGridView(dataGridView1);
     }
 }