예제 #1
0
        public VM_Stock()
        {
            UnStock           = new VM_UnStock();
            UnStock.IdVoiture = 12;
            string Index = UnStock.IdVoiture.ToString();

            BcpStock        = ChargerStock(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);
        }
예제 #2
0
 public void Modifier()
 {
     if (StockSelectionnee != null)
     {
         C_StockVoiture Tmp = new Model.G_StockVoiture(chConnexion).Lire_ID(StockSelectionnee.idVoiture);
         UnStock             = new VM_UnStock();
         UnStock.IdVoiture   = Tmp.idVoiture;
         UnStock.IdMarque    = Tmp.idMarque;
         UnStock.IdModele    = Tmp.idModele;
         UnStock.IdCategorie = Tmp.idCategorie;
         UnStock.AnneeFabr   = Tmp.anneeFabrication;
         UnStock.IdCarburant = Tmp.idCarburant;
         UnStock.IdCouleur   = Tmp.idCouleur;
         UnStock.Kilometrage = Tmp.kilometrage;
         ActiverUneFiche     = true;
     }
 }
예제 #3
0
 public void Ajouter()
 {
     UnStock         = new VM_UnStock();
     nAjout          = -1;
     ActiverUneFiche = true;
 }