Example #1
0
        public SnackMachineWindow()
        {
            InitializeComponent();
            var _viewModel = new SnackMachineViewModel(new Logic.SnackMachine());

            this.DataContext = _viewModel;
            this.btnCent_Copy.CommandParameter = Money.Cent;
        }
 public CommandInsertMoney(SnackMachineViewModel snackMachineViewModel, Action action)
 {
     this._snackMachineViewModel = snackMachineViewModel;
     _action = action;
 }