private void toolStripButton1_Click(object sender, EventArgs e)
        {
            if (txtcode.Text == "")
            {
                MessageBox.Show("Veillez remplir tous les champs!");
            }
            else
            {
                try
                {
                    ClassCompagnie c = new ClassCompagnie();
                    c.Code  = txtcode.Text.ToUpper();
                    c.Noms  = txtnom.Text.ToUpper();
                    c.photo = convertImagePicEdit(pictureEdit1);
                    c.Rccm  = txtrccm.Text.ToUpper();
                    //c.Ref_POS = comboBoPOS.Text;
                    c.Adresse     = txtadresse.Text.ToUpper();
                    c.Email       = txtemail.Text;
                    c.Description = txtdescri.Text.ToUpper();
                    c.Etat        = ComboEtat.Text;

                    ClassGlossaire.Instance.insertCompagie(c);

                    ClassGlossaire.Instance.GetDatas(gridControl1, "*", "compagnie");
                    initialise();
                    //getCode();
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }
            }
        }
        private void toolStripButton3_Click(object sender, EventArgs e)
        {
            ClassCompagnie c = new ClassCompagnie();

            c.Code        = txtcode.Text.ToUpper();
            c.Noms        = txtnom.Text.ToUpper();
            c.Description = txtdescri.Text;

            if (ClassGlossaire.Instance.updateStatut("INACTIF", c.Code, "compagnie") == true)
            {
                ClassGlossaire.Instance.updateCompte(c.Noms, c.Description, c.Code);
            }


            ClassGlossaire.Instance.GetDatas(gridControl1, "*", "compagnie");

            initialise();
            //getCode();
        }