private void btDeleteComb_Click(object sender, EventArgs e) { switch (MessageBox.Show("Удалить совместительство: " + dgvCombination.CurrentRow.Cells[3].Value.ToString() + " " + dgvCombination.CurrentRow.Cells[4].Value.ToString() + "?", "Удаление совместительство", MessageBoxButtons.YesNo, MessageBoxIcon.Question)) { case DialogResult.Yes: DataBaseProcedure procedure = new DataBaseProcedure(); procedure.spCombination_Delete(Convert.ToInt32( dgvCombination.CurrentRow.Cells[0].Value.ToString())); break; } }