public void Modifier()
 {
     if (ModeleSelectionnee != null)
     {
         C_Modele Tmp = new Model.G_Modele(chConnexion).Lire_ID(ModeleSelectionnee.idModele);
         UnModele        = new VM_UnModele();
         UnModele.ID     = Tmp.idModele;
         UnModele.Nom    = Tmp.nomModele;
         nAjout          = BcpModeles.IndexOf(ModeleSelectionnee);
         ActiverUneFiche = true;
     }
 }
        public VM_Modeles()
        {
            UnModele     = new VM_UnModele();
            UnModele.ID  = 34;
            UnModele.Nom = "Xantia";

            string Index = UnModele.ID.ToString();

            BcpModeles      = ChargerModeles(chConnexion, Index);
            ActiverUneFiche = false;
            cConfirmer      = new BaseCommande(Confirmer);
            cAnnuler        = new BaseCommande(Annuler);
            cAjouter        = new BaseCommande(Ajouter);
            cModifier       = new BaseCommande(Modifier);
            cSupprimer      = new BaseCommande(Supprimer);
            cEssaiSelMult   = new BaseCommande(EssaiSelMult);
        }
 public void Ajouter()
 {
     UnModele        = new VM_UnModele();
     nAjout          = -1;
     ActiverUneFiche = true;
 }