Esempio n. 1
0
 public WindowAddEditVM(WindowAddVins w, Vins v)
 {
     Vins             = new Vins(v.Annee, v.Type, v.Domaine, v.Pourcentage, v.Region, v.Cepage, v.Description, v.Appellation, v.Prix, v.EnCuisine, v.PathImage, v.ImageName);
     Window           = w;
     CommandName      = "Modifier";
     WindowName       = "Modification d'une bouteille";
     Command          = new DelegateCommand(CommandAction, CanExecuteParAnnulComm);
     AnnulCommand     = new DelegateCommand(AnnulAction, CanExecuteParAnnulComm);
     ParcourirCommand = new DelegateCommand(ParcourirAction, CanExecuteParAnnulComm);
     IsCanceled       = false;
 }
Esempio n. 2
0
 public WindowAddEditVM(WindowAddVins w)
 {
     Vins             = new Vins();
     Window           = w;
     CommandName      = "Ajouter";
     WindowName       = "Ajout d'une bouteille";
     Command          = new DelegateCommand(CommandAction, CanExecuteParAnnulComm);
     AnnulCommand     = new DelegateCommand(AnnulAction, CanExecuteParAnnulComm);
     ParcourirCommand = new DelegateCommand(ParcourirAction, CanExecuteParAnnulComm);
     IsCanceled       = false;
 }