private void galatee_ModeApp_OkClicked(object sender, EventArgs e)
        {
            UcListeGenerique ctrs = sender as UcListeGenerique;

            if (ctrs.isOkClick)
            {
                CsModeApplicationTarif _LeModeApp = (CsModeApplicationTarif)ctrs.MyObject;
                this.Txt_CodeModeApp.Text = _LeModeApp.CODE;
            }
        }
        private void InitCentre_Redev_RechTarif_ModeCalc_ModeApp()
        {
            CsRedevance _LeRedevence = ListeRedevence.FirstOrDefault(p => p.PK_ID == this.csVariableDeTarification.FK_IDREDEVANCE);

            if (_LeRedevence != null)
            {
                this.Txt_CodeRedevence.Text    = _LeRedevence.CODE;
                this.Txt_LibelleRedevence.Text = _LeRedevence.LIBELLE;
                this.Txt_LibelleRedevence.Tag  = _LeRedevence;
            }

            CsRechercheTarif _LeRechercheTarif = ListeRechercheTarif.FirstOrDefault(p => p.PK_ID == this.csVariableDeTarification.FK_IDRECHERCHETARIF);

            if (_LeRechercheTarif != null)
            {
                this.Txt_CodeRechercheTarif.Text    = _LeRechercheTarif.CODE;
                this.Txt_LibelleRechercheTarif.Text = _LeRechercheTarif.LIBELLE;
                this.Txt_LibelleRechercheTarif.Tag  = _LeRechercheTarif;
            }

            CsModeCalcul _LeModeCalcul = ListeModeCalcule.FirstOrDefault(p => p.PK_ID == this.csVariableDeTarification.FK_IDMODECALCUL);

            if (_LeModeCalcul != null)
            {
                this.Txt_CodeModeCalcule.Text    = _LeModeCalcul.CODE;
                this.Txt_LibelleModeCalcule.Text = _LeModeCalcul.LIBELLE;
                this.Txt_LibelleModeCalcule.Tag  = _LeModeCalcul;
            }

            CsModeApplicationTarif _LeModeApp = ListeModeApplicationTarif.FirstOrDefault(p => p.PK_ID == this.csVariableDeTarification.FK_IDMODEAPPLICATION);

            if (_LeModeApp != null)
            {
                this.Txt_CodeModeApp.Text    = _LeModeApp.CODE;
                this.Txt_LibelleModeApp.Text = _LeModeApp.LIBELLE;
                this.Txt_LibelleModeApp.Tag  = _LeModeApp;
            }

            Galatee.Silverlight.ServiceAccueil.CsCentre _Lecentre = LstCentre.FirstOrDefault(p => p.PK_ID == this.csVariableDeTarification.FK_IDCENTRE);
            if (_Lecentre != null)
            {
                this.Txt_CodeCentre.Text     = _Lecentre.CODE;
                this.Txt_LibelleCentre1.Text = _Lecentre.LIBELLE;
                this.Txt_LibelleCentre1.Tag  = _Lecentre;
            }
        }
 private void Txt_CodeModeApp_TextChanged(object sender, TextChangedEventArgs e)
 {
     try
     {
         if (!string.IsNullOrEmpty(Txt_CodeModeApp.Text) && Txt_CodeModeApp.Text.Length == 1)
         {
             CsModeApplicationTarif _LeModeApp = ClasseMEthodeGenerique.RetourneObjectFromList(ListeModeApplicationTarif, this.Txt_CodeModeApp.Text, "CODE");
             if (!string.IsNullOrEmpty(_LeModeApp.LIBELLE))
             {
                 this.Txt_LibelleModeApp.Text = _LeModeApp.LIBELLE;
                 IdModeApp = _LeModeApp.PK_ID;
                 this.csVariableDeTarification.FK_IDMODEAPPLICATION = IdModeApp;
             }
         }
     }
     catch (Exception ex)
     {
         Message.ShowError(ex.Message, Langue.lbl_Menu);
     }
 }