void galatee_OkClickedProduit(object sender, EventArgs e) { UcListeGenerique ctrs = sender as UcListeGenerique; if (ctrs.GetisOkClick) { ServiceInterfaceComptable.CsCoper _Leproduit = (ServiceInterfaceComptable.CsCoper)ctrs.MyObject; this.Txt_CodeProduit.Text = _Leproduit.CODE; this.Txt_LibelleProduit.Text = _Leproduit.LIBELLE; this.Txt_LibelleProduit.Tag = _Leproduit; } }
private void Txt_CodeProduit_TextChanged(object sender, TextChangedEventArgs e) { try { if (!string.IsNullOrEmpty(Txt_CodeProduit.Text)) { ServiceInterfaceComptable.CsCoper _LeProduit = ClasseMEthodeGenerique.RetourneObjectFromList(ListeOperation, this.Txt_CodeProduit.Text, "CODE"); if (!string.IsNullOrEmpty(_LeProduit.CODE)) { this.CsCoper_Type_Compte.FK_IDCOPER = _LeProduit.PK_ID; this.Txt_LibelleProduit.Text = _LeProduit.LIBELLE; this.Txt_LibelleProduit.Tag = _LeProduit; } } } catch (Exception ex) { Message.ShowError(ex.Message, Galatee.Silverlight.Resources.Accueil.Langue.lbl_Menu); } }