Exemple #1
0
 private void UpdateHospital(object sender, EventArgs e)
 {
     if (sender is ComboBox c)
     {
         var name = c.Text;
         if (string.IsNullOrEmpty(name.Trim()))
         {
             name = "%";
         }
         comboBox8.Items.Clear();
         comboBox8.Items.AddRange(Databaseconnection.gethopital(name));
     }
 }
        private void Button2_Click(object sender, EventArgs e)
        {
            var result = Databaseconnection.Modifier_equipmement(textBox5.Text, comboBox8.Text, textBox2.Text, textBox3.Text, comboBox6.Text, comboBox5.Text, comboBox7.Text, elem.Id);

            if (result)
            {
                MessageBox.Show("équipement Modifier avec succée");
                this.Close();
            }
            else
            {
                MessageBox.Show("Problem de modification de l'équipement");
            }
        }
        private void Button1_Click(object sender, EventArgs e)
        {
            var result = Databaseconnection.Modifier_Personnel(textBox1.Text, textBox2.Text, textBox3.Text, maskedTextBox1.Text, pers.Id);

            if (result)
            {
                MessageBox.Show("Personnel Modifier avec succée");
                this.Close();
            }
            else
            {
                MessageBox.Show("Problem de modification du personnel");
            }
        }
Exemple #4
0
        private void Button10_Click(object sender, EventArgs e)
        {
            var result = Databaseconnection.Modifier_Demande(textBox8.Text, dateTimePicker1.Text, comboBox6.Text, textBox1.Text, comboBox9.Text, comboBox8.Text, textBox9.Text, textBox11.Text, textBox12.Text, textBox10.Text, textBox7.Text, demm.ID_DEMANDE);


            if (result)
            {
                MessageBox.Show("demande Modifier avec succée");
                this.Close();
            }
            else
            {
                MessageBox.Show("Problem de modification de la demande ");
            }
        }
Exemple #5
0
 public void setdemande(int id)
 {
     demm           = Databaseconnection.getdemande(id);
     textBox8.Text  = demm.Nombre_Respirateur_anesthesie;
     textBox1.Text  = demm.Date_Demande;
     comboBox6.Text = demm.Etat_demande;
     textBox1.Text  = demm.Numero_demande;
     comboBox9.Text = demm.region_demande;
     comboBox8.Text = demm.Hopital_demande;
     textBox9.Text  = demm.Nombre_respirateur_reanimation;
     textBox11.Text = demm.nombre_pousse_seringe;
     textBox12.Text = demm.nombre_defibrillateur;
     textBox10.Text = demm.Nombre_respirateur_transport;
     textBox13.Text = demm.Nombre_bistouri;
 }
Exemple #6
0
        private void Button5_Click(object sender, EventArgs e)
        {
            bool?result = null;

            if (dataGridView1.SelectedRows.Count == 1)
            {
                var selectedrow = dataGridView1.SelectedRows[0];
                result = Databaseconnection.supprimer_equipement((int)selectedrow.Cells[0].Value);
            }
            else
            {
                MessageBox.Show("Veuillez selectionnez une ligne entiére.");
            }
            if (result.HasValue)
            {
                MessageBox.Show(result.Value ? "équipement supprimé." : "erreur de suppression de l'equipement.");
            }
        }
Exemple #7
0
        private void Button26_Click_1(object sender, EventArgs e)
        {
            bool?result = null;

            if (dataGridView7.SelectedRows.Count == 1)
            {
                var selectedrow9 = dataGridView7.SelectedRows[0];
                result = Databaseconnection.supprimer_interv_pousse_seringue((int)selectedrow9.Cells[0].Value);
            }
            else
            {
                MessageBox.Show("Veuillez selectionnez une ligne entiére.");
            }
            if (result.HasValue)
            {
                MessageBox.Show(result.Value ? "Pousse seringue supprimé." : "erreur de suppression du pousse seringue.");
            }
        }
Exemple #8
0
        private void Button23_Click_1(object sender, EventArgs e)
        {
            bool?result = null;

            if (dataGridView6.SelectedRows.Count == 1)
            {
                var selectedrow10 = dataGridView6.SelectedRows[0];
                result = Databaseconnection.supprimer_interv_defibrillateur((int)selectedrow10.Cells[0].Value);
            }
            else
            {
                MessageBox.Show("Veuillez selectionnez une ligne entiére.");
            }
            if (result.HasValue)
            {
                MessageBox.Show(result.Value ? "défibrillateur supprimé." : "erreur de suppression du défibrillateur.");
            }
        }
Exemple #9
0
        private void Button14_Click(object sender, EventArgs e)
        {
            bool?result = null;

            if (dataGridView3.SelectedRows.Count == 1)
            {
                var selectedrow3 = dataGridView3.SelectedRows[0];
                result = Databaseconnection.supprime_demande(Int32.Parse(selectedrow3.Cells[0].Value.ToString()));
            }
            else
            {
                MessageBox.Show("Veuillez selectionnez une ligne entiére.");
            }
            if (result.HasValue)
            {
                MessageBox.Show(result.Value ? "Demande supprimé." : "erreur de suppression de la demande.");
            }
        }
Exemple #10
0
        private void Button1_Click(object sender, EventArgs e)
        {
            if (textBox4.Text == "")
            {
                MessageBox.Show("Vous devez donner le nom du personnel.", "Erruer", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            if (textBox5.Text == "")
            {
                MessageBox.Show("Vous devez donner le prenom du personnel.", "Erruer", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            if (textBox1.Text == "")
            {
                MessageBox.Show("Vous devez donner un email correct.", "Erruer", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            if (maskedTextBox1.Text == "")
            {
                MessageBox.Show("Vous devez donner un mot de passe .", "Erruer", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }



            var result = Databaseconnection.Ajouter_intervenant(textBox4.Text, textBox5.Text, textBox1.Text, maskedTextBox1.Text);

            if (result)
            {
                MessageBox.Show("Personnel ajouté avec succée");
                this.Close();
            }
            else
            {
                MessageBox.Show("Problem d'ajout de personnel");
            }
        }
        private void Button1_Click(object sender, EventArgs e)
        {
            string etatintervention11 = radioButton1.Checked ? radioButton1.Text : radioButton2.Text;
            string etatequipement11   = radioButton3.Checked ? radioButton3.Text : radioButton4.Text;
            string etatsecurite11     = radioButton11.Checked ? radioButton11.Text : radioButton12.Text;
            string testpremiervoie1   = radioButton7.Checked ? radioButton7.Text : radioButton8.Text;
            string testdeuxiemevoie1  = radioButton9.Checked ? radioButton9.Text : radioButton10.Text;



            var result = Databaseconnection.Modifier_interv_pousse_seringue(textBox3.Text, dateTimePicker1.Text, etatintervention11, comboBox3.Text, etatsecurite11, testpremiervoie1, testdeuxiemevoie1, richTextBox1.Text, comboBox1.Text, etatequipement11, comboBox2.Text, ps.id_pousse);

            if (result)
            {
                MessageBox.Show("Pousse seringue modifié avec succée");
                this.Close();
            }
            else
            {
                MessageBox.Show("Problem de modification de Pousse seringue");
            }
        }
        private void Button1_Click(object sender, EventArgs e)
        {
            string etatintervention33     = radioButton1.Checked ? radioButton1.Text : radioButton2.Text;
            string etatequipement33       = radioButton3.Checked ? radioButton3.Text : radioButton4.Text;
            string securitelectrique44    = radioButton5.Checked ? radioButton5.Text : radioButton6.Text;
            string testmodes1             = radioButton7.Checked ? radioButton7.Text : radioButton8.Text;
            string testfuitepartieactive1 = radioButton9.Checked ? radioButton9.Text : radioButton10.Text;
            string testfuitepartieneutre1 = radioButton13.Checked ? radioButton13.Text : radioButton14.Text;


            var result = Databaseconnection.Modifier_interv_bistouri(textBox1.Text, dateTimePicker1.Text, etatintervention33, comboBox3.Text, textBox3.Text, securitelectrique44, testmodes1, richTextBox1.Text, comboBox1.Text, testfuitepartieactive1, testfuitepartieneutre1, etatequipement33, comboBox2.Text, x.idintervention);


            if (result)
            {
                MessageBox.Show("Bistouri modifié avec succée");
                this.Close();
            }
            else
            {
                MessageBox.Show("Problem de modification de Bistouri");
            }
        }
Exemple #13
0
 private void UpdateListsPersonnel()
 {
     dataGridView2.DataSource = Databaseconnection.fillpersonnel();
 }
 private void AjoutPersonnel()
 {
     comboBox3.Items.Clear();
     comboBox3.Items.AddRange(Databaseconnection.getintervenant());
 }
 private void ajoutserie()
 {
     comboBox2.Items.Clear();
     comboBox2.Items.AddRange(Databaseconnection.getserie());
 }
        public void setResp(int id)
        {
            respmo               = Databaseconnection.getrespirateur(id);
            textBox1.Text        = respmo.Numero_intervention;
            dateTimePicker1.Text = respmo.Date_intervention;
            comboBox3.Text       = respmo.Intervenant;
            comboBox1.Text       = respmo.Numero_demande;
            comboBox29.Text      = respmo.type_equip;
            comboBox2.Text       = respmo.num_ser_interv;

            switch (respmo.Etat_intervention)
            {
            case "En cours":
                radioButton1.Select();
                break;

            default:
                radioButton2.Select(); break;
            }

            switch (respmo.test_securite_electrique)
            {
            case "Bon":
                radioButton5.Select();
                break;

            default:
                radioButton6.Select(); break;
            }

            switch (respmo.test_vc)
            {
            case "Bon":
                radioButton8.Select();
                break;

            case "Mauvais":
                radioButton7.Select();
                break;

            default:
                radioButton9.Select(); break;
            }

            switch (respmo.Etat_equip)
            {
            case "Bonne":
                radioButton3.Select();
                break;

            default:
                radioButton4.Select(); break;
            }

            switch (respmo.test_oxygene)
            {
            case "Bon":
                radioButton18.Select();
                break;

            case "Mauvais":
                radioButton17.Select();
                break;

            default:
                radioButton16.Select(); break;
            }

            switch (respmo.test_pc)
            {
            case "Bon":
                radioButton12.Select();
                break;

            case "Mauvais":
                radioButton11.Select();
                break;

            default:
                radioButton10.Select(); break;
            }

            switch (respmo.test_vac)
            {
            case "Bon":
                radioButton15.Select();
                break;

            case "Mauvais":
                radioButton14.Select();
                break;

            default:
                radioButton13.Select(); break;
            }
            richTextBox1.Text = respmo.Commentaire;
        }
 private void ajouterregion()
 {
     comboBox7.Items.Clear();
     comboBox7.Items.AddRange(Databaseconnection.GetRegions());
 }
Exemple #18
0
 private void UpdateListsEquipement()
 {
     dataGridView1.DataSource = Databaseconnection.fillEquipement();
 }
        private void Button1_Click(object sender, EventArgs e)
        {
            if (!radioButton1.Checked && !radioButton2.Checked)
            {
                MessageBox.Show("Vous devez spécifier l'etat d'intervention.", "Erruer", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            if (!radioButton3.Checked && !radioButton4.Checked)
            {
                MessageBox.Show("Vous devez spécifier l'état de l'équipement.", "Erruer", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            if (!radioButton11.Checked && !radioButton12.Checked)
            {
                MessageBox.Show("Vous devez spécifier l'etat de test sécurite électrique.", "Erruer", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            if (!radioButton5.Checked && !radioButton6.Checked)
            {
                MessageBox.Show("Vous devez spécifier l'etat de test indicateur synchro.", "Erruer", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            if (!radioButton17.Checked && !radioButton18.Checked)
            {
                MessageBox.Show("Vous devez spécifier l'etat de test de moniteur et module ECG.", "Erruer", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            if (!radioButton9.Checked && !radioButton10.Checked)
            {
                MessageBox.Show("Vous devez spécifier l'etat de test d'énergie.", "Erruer", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            if (!radioButton7.Checked && !radioButton8.Checked)
            {
                MessageBox.Show("Vous devez spécifier l'etat de test de temps de charge.", "Erruer", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            if (!radioButton15.Checked && !radioButton16.Checked)
            {
                MessageBox.Show("Vous devez spécifier l'etat de test d'indicateur normale.", "Erruer", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            if (!radioButton19.Checked && !radioButton20.Checked)
            {
                MessageBox.Show("Vous devez spécifier l'etat de test de enregistrement papier.", "Erruer", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            string etatintervention566       = radioButton1.Checked ? radioButton1.Text : radioButton2.Text;
            string etatequipement566         = radioButton3.Checked ? radioButton3.Text : radioButton4.Text;
            string testsecuriteelectrique556 = radioButton11.Checked ? radioButton11.Text : radioButton12.Text;
            string testindicateursynchro     = radioButton5.Checked ? radioButton5.Text : radioButton6.Text;
            string testmoniteur         = radioButton17.Checked ? radioButton17.Text : radioButton18.Text;
            string testenergie          = radioButton9.Checked ? radioButton9.Text : radioButton10.Text;
            string testtempscharge      = radioButton7.Checked ? radioButton7.Text : radioButton8.Text;
            string indicateurnormale    = radioButton15.Checked ? radioButton15.Text : radioButton16.Text;
            string enregistrementpapier = radioButton19.Checked ? radioButton19.Text : radioButton20.Text;
            string tauxperte            = radioButton13.Checked ? radioButton13.Text : radioButton14.Text;



            var result = Databaseconnection.ajout_defibrillateur(textBox6.Text, textBox3.Text, etatintervention566, comboBox3.Text, testsecuriteelectrique556, testindicateursynchro, indicateurnormale, testtempscharge, testenergie, tauxperte, testmoniteur, enregistrementpapier, richTextBox1.Text, comboBox2.Text, textBox5.Text, etatequipement566);

            if (result)
            {
                MessageBox.Show("Défibrillateur ajouté avec succée");
                this.Close();
            }
            else
            {
                MessageBox.Show("Problem d'ajout de Défibrillateur");
            }
        }
        public void setbistouri(int id)
        {
            x                    = Databaseconnection.getbistouri(id);
            textBox1.Text        = x.Numero_intervention;
            dateTimePicker1.Text = x.Date_intervention;

            switch (x.Etat_intervention)
            {
            case "En cours":
                radioButton1.Select();
                break;

            default:
                radioButton2.Select(); break;
            }
            comboBox3.Text = x.Intervenant;
            textBox3.Text  = x.typ_equipement;

            switch (x.Test_securit_electrique)
            {
            case "Bon":
                radioButton6.Select();
                break;

            default:
                radioButton5.Select(); break;
            }

            switch (x.Test_des_modes)
            {
            case "Bon":
                radioButton8.Select();
                break;

            default:
                radioButton7.Select(); break;
            }
            richTextBox1.Text = x.Commentaire;
            comboBox1.Text    = x.Numero_demande;

            switch (x.test_fuite_partie_active)
            {
            case "Bon":
                radioButton10.Select();
                break;

            default:
                radioButton9.Select(); break;
            }

            switch (x.test_fuite_partie_neutre)
            {
            case "Bon":
                radioButton14.Select();
                break;

            default:
                radioButton13.Select(); break;
            }

            switch (x.etat_equip)
            {
            case "Bonne":
                radioButton3.Select();
                break;

            default:
                radioButton4.Select(); break;
            }
            comboBox2.Text = x.numero_serie_bistouri;
        }
 private void ajouthopital()
 {
     comboBox6.Items.Clear();
     comboBox6.Items.AddRange(Databaseconnection.gethopital());
 }
Exemple #22
0
 private void UpdateListsdemande()
 {
     dataGridView3.DataSource = Databaseconnection.filldemande();
 }
        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");
            }
        }
Exemple #24
0
 private void UpdateListsinterventionresp()
 {
     dataGridView4.DataSource = Databaseconnection.fillinterventionresp();
 }
        private void Button1_Click(object sender, EventArgs e)
        {
            if (!radioButton1.Checked && !radioButton2.Checked)
            {
                MessageBox.Show("Vous devez spécifier l'etat d'intervention.", "Erruer", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            if (!radioButton3.Checked && !radioButton4.Checked)
            {
                MessageBox.Show("Vous devez spécifier l'etat de l'équipement.", "Erruer", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            if (!radioButton5.Checked && !radioButton6.Checked)
            {
                MessageBox.Show("Vous devez spécifier l'etat de test sécurite électrique.", "Erruer", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }


            if (!radioButton8.Checked && !radioButton7.Checked && !radioButton9.Checked)
            {
                MessageBox.Show("Vous devez spécifier l'etat de volume contrôlée.", "Erruer", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            if (!radioButton15.Checked && !radioButton14.Checked && !radioButton13.Checked)
            {
                MessageBox.Show("Vous devez spécifier l'etat detest volume assisté contrôlée .", "Erruer", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }


            if (!radioButton12.Checked && !radioButton11.Checked && !radioButton10.Checked)
            {
                MessageBox.Show("Vous devez spécifier l'etat de test pression contrôlée.", "Erruer", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            if (!radioButton18.Checked && !radioButton17.Checked && !radioButton16.Checked)
            {
                MessageBox.Show("Vous devez spécifier l'etat de test d'oxygéne.", "Erruer", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }


            /* If(button1.is checked== false
             * S= button2.checked ? ....
             * Else
             * S= button1.text...*/

            string etatintervention = radioButton1.Checked ? radioButton1.Text : radioButton2.Text;
            string etatequipement   = radioButton3.Checked ? radioButton3.Text : radioButton4.Text;
            string etatsecurite     = radioButton5.Checked ? radioButton5.Text : radioButton6.Text;


            string etatvc;

            if (radioButton8.Checked == false)
            {
                etatvc = radioButton7.Checked ? radioButton7.Text : radioButton9.Text;
            }

            else
            {
                etatvc = radioButton8.Text;
            }

            string etatvac;

            if (radioButton15.Checked == false)
            {
                etatvac = radioButton14.Checked ? radioButton14.Text : radioButton13.Text;
            }
            else
            {
                etatvac = radioButton15.Text;
            }

            string etatpress;

            if (radioButton12.Checked == false)
            {
                etatpress = radioButton11.Checked ? radioButton11.Text : radioButton10.Text;
            }
            else
            {
                etatpress = radioButton12.Text;
            }


            string etatoxyg;

            if (radioButton18.Checked == false)
            {
                etatoxyg = radioButton17.Checked ? radioButton17.Text : radioButton16.Text;
            }
            else
            {
                etatoxyg = radioButton18.Text;
            }



            var result = Databaseconnection.intervention_respirateur(textBox2.Text, dateTimePicker1.Text, comboBox3.Text, comboBox1.Text, comboBox29.Text, comboBox2.Text, etatintervention, etatsecurite, etatvc, etatequipement, etatoxyg, etatpress, etatvac, richTextBox1.Text);

            if (result)
            {
                MessageBox.Show("Respirateur ajouté avec succée");
                this.Close();
            }
            else
            {
                MessageBox.Show("Problem d'ajout de Respirateur");
            }
        }
Exemple #26
0
 public void UpdateListsinterventionbist()
 {
     dataGridView5.DataSource = Databaseconnection.fillinterventbistouri();
 }
 private void ajoudemande()
 {
     comboBox1.Items.Clear();
     comboBox1.Items.AddRange(Databaseconnection.getdemande());
 }
Exemple #28
0
 public void UpdateListsinterventionpouss()
 {
     dataGridView7.DataSource = Databaseconnection.fillinterventpousseseringue();
 }
        private void Button1_Click(object sender, EventArgs e)
        {
            if (dateTimePicker1.Text == "")
            {
                MessageBox.Show("Vous devez donner le numéro d'intervention.", "Erruer", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }


            if (!radioButton1.Checked && !radioButton2.Checked)
            {
                MessageBox.Show("Vous devez spécifier l'etat d'intervention.", "Erruer", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            if (!radioButton3.Checked && !radioButton4.Checked)
            {
                MessageBox.Show("Vous devez spécifier l'etat de l'équipement.", "Erruer", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }


            if (!radioButton5.Checked && !radioButton6.Checked)
            {
                MessageBox.Show("Vous devez spécifier l'etat de test séurite électrique.", "Erruer", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }



            if (!radioButton7.Checked && !radioButton8.Checked)
            {
                MessageBox.Show("Vous devez spécifier l'etat de test des modes.", "Erruer", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }


            if (!radioButton9.Checked && !radioButton10.Checked)
            {
                MessageBox.Show("Vous devez spécifier l'etat test fuite partie active.", "Erruer", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }


            if (!radioButton13.Checked && !radioButton14.Checked)
            {
                MessageBox.Show("Vous devez spécifier l'etat test fuite partie neutre.", "Erruer", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            string etatintervention3     = radioButton1.Checked ? radioButton1.Text : radioButton2.Text;
            string etatequipement3       = radioButton3.Checked ? radioButton3.Text : radioButton4.Text;
            string securitelectrique4    = radioButton5.Checked ? radioButton5.Text : radioButton6.Text;
            string testmodes             = radioButton7.Checked ? radioButton7.Text : radioButton8.Text;
            string testfuitepartieactive = radioButton9.Checked ? radioButton9.Text : radioButton10.Text;
            string testfuitepartieneutre = radioButton13.Checked ? radioButton13.Text : radioButton14.Text;


            var result = Databaseconnection.ajout_boustri(dateTimePicker1.Text, textBox1.Text, etatintervention3, comboBox3.Text, textBox3.Text, securitelectrique4, testmodes, richTextBox1.Text, comboBox1.Text, testfuitepartieactive, testfuitepartieneutre, etatequipement3, comboBox2.Text);

            if (result)
            {
                MessageBox.Show("Bistouri ajouté avec succée");
                this.Close();
            }
            else
            {
                MessageBox.Show("Problem d'ajout de Bistouri");
            }
        }
Exemple #30
0
 public void UpdateListsinterventiondefib()
 {
     dataGridView6.DataSource = Databaseconnection.fillinterventdefibrillateur();
 }