private void Button1_Click(object sender, EventArgs e) { string etatintervention1 = radioButton1.Checked ? radioButton1.Text : radioButton2.Text; string etatequipement1 = radioButton3.Checked ? radioButton3.Text : radioButton4.Text; string etatsecurite1 = radioButton5.Checked ? radioButton5.Text : radioButton6.Text; string etatvc1; if (radioButton8.Checked == false) { etatvc1 = radioButton7.Checked ? radioButton7.Text : radioButton9.Text; } else { etatvc1 = radioButton8.Text; } string etatvac1; if (radioButton15.Checked == false) { etatvac1 = radioButton14.Checked ? radioButton14.Text : radioButton13.Text; } else { etatvac1 = radioButton15.Text; } string etatpress1; if (radioButton12.Checked == false) { etatpress1 = radioButton11.Checked ? radioButton11.Text : radioButton10.Text; } else { etatpress1 = radioButton12.Text; } string etatoxyg1; if (radioButton18.Checked == false) { etatoxyg1 = radioButton17.Checked ? radioButton17.Text : radioButton16.Text; } else { etatoxyg1 = radioButton18.Text; } var result = Databaseconnection.Modifier_interv_respirateur(textBox1.Text, dateTimePicker1.Text, comboBox3.Text, comboBox1.Text, comboBox29.Text, comboBox2.Text, etatintervention1, etatsecurite1, etatvc1, etatequipement1, etatoxyg1, etatpress1, etatvac1, richTextBox1.Text, respmo.ID_intervention_resp); if (result) { MessageBox.Show("Respirateur modifié avec succée"); this.Close(); } else { MessageBox.Show("Problem de modification de Respirateur"); } }