public void Modifier()
 {
     if (FraisSelectionne != null)
     {
         C_Frais Tmp = new Model.G_Frais(chConnexion).Lire_ID(FraisSelectionne.idFrais);
         UnFrais                  = new VM_UnFrais();
         UnFrais.IDFrais          = Tmp.idFrais;
         UnFrais.IDVoiture        = Tmp.idVoiture;
         UnFrais.NomFrais         = Tmp.nomFrais;
         UnFrais.DescriptionFrais = Tmp.descriptionFrais;
         UnFrais.CoutFrais        = Tmp.coutFrais;
         nAjout          = BcpFrais.IndexOf(FraisSelectionne);
         ActiverUneFiche = true;
     }
 }
        public VM_Frais()
        {
            UnFrais         = new VM_UnFrais();
            UnFrais.IDFrais = 24;
            string Index = UnFrais.IDFrais.ToString();

            BcpFrais        = ChargerFrais(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()
 {
     UnFrais         = new VM_UnFrais();
     nAjout          = -1;
     ActiverUneFiche = true;
 }