public VM_Desideratas()
        {
            UnDesiderata = new VM_UnDesiderata();
            UnDesiderata.IDDesiderata = 24;
            string Index = UnDesiderata.IDDesiderata.ToString();

            BcpDesideratas  = ChargerDesideratas(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 Modifier()
 {
     if (DesiderataSelectionne != null)
     {
         C_Desideratas Tmp = new Model.G_Desideratas(chConnexion).Lire_ID(DesiderataSelectionne.idDesiderata);
         UnDesiderata = new VM_UnDesiderata();
         UnDesiderata.IDDesiderata = Tmp.idDesiderata;
         UnDesiderata.IDClient     = Tmp.idClient;
         UnDesiderata.IDMarque     = Tmp.idMarque;
         UnDesiderata.IDModele     = Tmp.idModele;
         UnDesiderata.IDCat        = Tmp.idCat;
         UnDesiderata.Kilometrage  = Tmp.kilometrageMax;
         UnDesiderata.IDCouleur    = Tmp.idCouleur;
         UnDesiderata.IDCarburant  = Tmp.idCarburant;
         UnDesiderata.AnneeMin     = Tmp.anneeMin;
         nAjout          = BcpDesideratas.IndexOf(DesiderataSelectionne);
         ActiverUneFiche = true;
     }
 }
 public void Ajouter()
 {
     UnDesiderata    = new VM_UnDesiderata();
     nAjout          = -1;
     ActiverUneFiche = true;
 }