Ejemplo n.º 1
0
 public CalculatorViewModel()
 {
     this.model            = new CalculatorModel();
     this.CalculateCommand = new MvvmCommand(
         param => model.Calculate(),
         param => NumberA != 0 && NumberB != 0)
                             .AddListner <CalculatorViewModel>(this, x => x.NumberA);
 }
Ejemplo n.º 2
0
 public CalculatorViewModel(CalculatorModel model)
 {
     this.model = model;
 }