private void btn_Redevence_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                List <object> _LstObject = Galatee.Silverlight.Shared.ClasseMEthodeGenerique.RetourneListeObjet(SessionObject.ListeRedevence.OrderBy(p => p.CODE).ToList());
                Dictionary <string, string> _LstColonneAffich = new Dictionary <string, string>();
                _LstColonneAffich.Add("CODE", "CODE");
                _LstColonneAffich.Add("LIBELLE", "LIBELLE");
                _LstColonneAffich.Add("LIBELLEPRODUIT", "PRODUIT");

                #region Sylla

                //MainView.UcListeGenerique ctr = new MainView.UcListeGenerique(_LstObject, _LstColonneAffich, false, "Liste");
                FrmListeRedevanceFiltre ctr = new FrmListeRedevanceFiltre();
                //ctr.Closed += new EventHandler(galatee_Redevence_OkClicked);
                ctr.CallBack += ctr_CallBack;
                #endregion

                ctr.Show();
            }
            catch (Exception ex)
            {
                string error = ex.Message;
            }
        }
        private void galatee_Redevence_OkClicked(object sender, EventArgs e)
        {
            FrmListeRedevanceFiltre ctrs = sender as FrmListeRedevanceFiltre;

            if (ctrs.MyObject != null)
            {
                CsRedevance _LaRedevance = (CsRedevance)ctrs.MyObject;
                this.Txt_CodeRedevence.Text            = _LaRedevance.CODE;
                this.Txt_CodeRedevence.Tag             = _LaRedevance;
                this.Txt_LibelleRedevence.Text         = _LaRedevance.LIBELLE;
                this.Txt_CodeProduit.IsReadOnly        = true;
                this.Txt_LibelleProduitRech.IsReadOnly = true;
                this.btn_Produit.IsEnabled             = true;
                this.Txt_LibelleProduitRech.Text       = _LaRedevance.LIBELLEPRODUIT;
                this.Txt_CodeProduit.Text = _LaRedevance.PRODUIT;
            }
        }
        void ctr_CallBack(object sender, CustumEventArgs e)
        {
            FrmListeRedevanceFiltre ctrs = sender as FrmListeRedevanceFiltre;

            if (e.Data != null)
            {
                CsRedevance _LaRedevance = (CsRedevance)e.Data;
                this.Txt_CodeRedevence.Text            = _LaRedevance.CODE;
                this.Txt_CodeRedevence.Tag             = _LaRedevance;
                this.Txt_LibelleRedevence.Text         = _LaRedevance.LIBELLE;
                this.Txt_CodeProduit.IsReadOnly        = true;
                this.Txt_LibelleProduitRech.IsReadOnly = true;
                this.btn_Produit.IsEnabled             = true;
                this.Txt_LibelleProduitRech.Text       = _LaRedevance.LIBELLEPRODUIT;
                this.Txt_CodeProduit.Text = _LaRedevance.PRODUIT;
            }
        }