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

            if (ctrs.GetisOkClick)
            {
                Galatee.Silverlight.ServiceAccueil.CsProduit _Leproduit = (Galatee.Silverlight.ServiceAccueil.CsProduit)ctrs.MyObject;
                //this.Txt_CodeProduit.Text = _Leproduit.CODE;
                //this.Txt_LibelleProduit.Text = _Leproduit.LIBELLE;
                //this.Txt_LibelleProduit.Tag = _Leproduit;
            }
        }
Ejemplo n.º 2
0
        void ctr_ClosedProduit(object sender, EventArgs e)
        {
            this.IsEnabled = true;
            UcListeGenerique ctrs = sender as UcListeGenerique;

            if (ctrs.GetisOkClick)
            {
                Galatee.Silverlight.ServiceAccueil.CsProduit _Leproduit = (Galatee.Silverlight.ServiceAccueil.CsProduit)ctrs.MyObject;
                this.Txt_CodeProduit.Text    = _Leproduit.CODE;
                this.Txt_CodeProduit.Tag     = _Leproduit.PK_ID;
                this.Txt_LibelleProduit.Text = _Leproduit.LIBELLE;
            }
        }
Ejemplo n.º 3
0
 private void Txt_CodeProduit_TextChanged(object sender, TextChangedEventArgs e)
 {
     try
     {
         if (!string.IsNullOrEmpty(Txt_CodeProduit.Text) && this.Txt_CodeProduit.Text.Length == SessionObject.Enumere.TailleCodeProduit)
         {
             Galatee.Silverlight.ServiceAccueil.CsProduit _LeProduit = ClasseMEthodeGenerique.RetourneObjectFromList(LstDeProduit, this.Txt_CodeProduit.Text, "CODE");
             if (!string.IsNullOrEmpty(_LeProduit.CODE))
             {
                 this.Txt_LibelleProduit.Text = _LeProduit.LIBELLE;
                 this.Txt_CodeProduit.Tag     = _LeProduit.PK_ID;
             }
         }
     }
     catch (Exception ex)
     {
         Message.ShowError(ex.Message, "Devis");
     }
 }