private void button_Ajouter_Click(object sender, EventArgs e)
        {
            var abo     = Program.cs.Abonners.Find(int.Parse(cmbx_CodeAbonner.Text));
            var montant = abo.Type_abonnement.TarifTAb * abo.Type_abonnement.DureeTAb;

            comboBoxMontant.Text = montant.ToString();
            var pai = new paiment
            {
                CodeAb  = (int)cmbx_CodeAbonner.SelectedValue,
                NumA    = (int)Cmbbx_NumAdhérent.SelectedValue,
                Montant = montant,
                ModeP   = comboBoxModePaiment.Text
            };

            if (pai != null)
            {
                cs.paiments.Add(pai);
                bs.EndEdit();
                cs.SaveChanges();
                MessageBox.Show("Bien Ajouter");
            }
            else
            {
                MessageBox.Show("Erreur");
            }
        }
        private void PositionChangedHandler(object sender, EventArgs e)
        {
            paiment curr = bs.Current as paiment;

            cmbx_CodeAbonner.DataSource = curr.Adherent.Abonners.Select(abo => abo.codeAb).ToList();
            if (cmbx_CodeAbonner.DataSource == null)
            {
                cmbx_CodeAbonner.Text = "";
            }
            //cmbx_CodeAbonner.DataSource = Program.cs.Abonners.Where(abo => abo.Adherent == curr.Adherent.)
            //                                                     .Select(abo => abo.codeAb)
            //                                                     .ToList();
        }