void frm_CallBack(object sender, Tarification.Helper.CustumEventArgs e)
        {
            AjouterPeriodeAListe();

            FrmCampagne Frm = (FrmCampagne)sender;

            //Implementer le callback
            if (e.Bag != null)
            {
                if (!Frm.Arefaire)
                {
                    var camp = (CsCampagneGc)e.Bag;
                    if (Anciennecamp.FirstOrDefault(c => c.PK_ID == camp.PK_ID) != null)
                    {
                        this.Anciennecamp.Remove(camp);
                    }
                    //List<string> listperiode=new List<string>();

                    List <CsLclient> dataSource = new List <CsLclient>();
                    foreach (var item in camp.DETAILCAMPAGNEGC_)
                    {
                        CsLclient facture = new CsLclient();
                        facture.CENTRE       = item.CENTRE;
                        facture.CLIENT       = item.CLIENT;
                        facture.ORDRE        = item.ORDRE;
                        facture.FK_IDCLIENT  = item.FK_IDCLIENT;
                        facture.FK_IDLCLIENT = item.FK_IDLCLIENT;
                        facture.NOM          = item.NOM;
                        facture.REFEM        = item.PERIODE;
                        facture.MONTANT      = item.MONTANT;
                        facture.NDOC         = item.NDOC;
                        dataSource.Add(facture);
                    }
                    //dg_facture_Copy.ItemsSource = dataSource;
                    LoadDataPager <CsLclient>(dataSource, datapager_Copy, dg_facture_Copy);
                }
                else
                {
                    this.Anciennecamp.Add((CsCampagneGc)e.Bag);
                }
            }
            else
            {
                txt_periode.Text = string.Empty;
            }
        }
 private void VerifierCampagneExiste(CsRegCli csRegCli, string periode)
 {
     Galatee.Silverlight.ServiceRecouvrement.RecouvrementServiceClient service = new Galatee.Silverlight.ServiceRecouvrement.RecouvrementServiceClient(Utility.ProtocoleFacturation(), Utility.EndPoint("Recouvrement"));
     service.VerifierCampagneExisteCompleted += (s, args) =>
     {
         if (args != null && args.Cancelled)
         {
             return;
         }
         if (args.Result == null)
         {
             return;
         }
         FrmCampagne frm = new FrmCampagne(args.Result);
         frm.CallBack += frm_CallBack;
         frm.Closing  += frm_Closing;
         frm.Show();
         return;
     };
     service.VerifierCampagneExisteAsync(csRegCli, periode);
 }