Пример #1
0
        private ObservableCollection <C_T_Beneficiaire> ChargerBeneficaire(string chConn)
        {
            ObservableCollection <C_T_Beneficiaire> rep = new ObservableCollection <C_T_Beneficiaire>();
            List <C_T_Beneficiaire> lTmp = new CoucheGestion.G_T_Beneficiaire(chConn).Lire("ID");

            foreach (C_T_Beneficiaire Tmp in lTmp)
            {
                rep.Add(Tmp);
            }
            return(rep);
        }
Пример #2
0
 public void Modifier()
 {
     if (BeneficiairefSelectionne != null)
     {
         C_T_Beneficiaire Tmp = new CoucheGestion.G_T_Beneficiaire(chConnexion).Lire_ID(BeneficiairefSelectionne.ID_Beneficiaire);
         UnBeneficiaire     = new VM_Un_Beneficiaire();
         UnBeneficiaire.ID  = Tmp.ID_Beneficiaire;
         UnBeneficiaire.Pre = Tmp.B_Prenom;
         UnBeneficiaire.Nom = Tmp.B_Nom;
         UnBeneficiaire.Nai = Tmp.B_Annif;
         nAjout             = BcpBeneficiaire.IndexOf(BeneficiairefSelectionne);
         ActiverUneFiche    = true;
     }
 }