public CalculatorVIewModel()
 {
     CalculatorModel = new Model.CalculatorModel();
     One             = new DelegateCommand(DisplayOne);
     Two             = new DelegateCommand(DisplayTwo);
     Three           = new DelegateCommand(DisplayThree);
     Four            = new DelegateCommand(DisplayFour);
     Five            = new DelegateCommand(DisplayFive);
     Six             = new DelegateCommand(DisplaySix);
     Seven           = new DelegateCommand(DisplaySeven);
     Eight           = new DelegateCommand(DisplayEight);
     Nine            = new DelegateCommand(DisplayNine);
     Zero            = new DelegateCommand(DisplayZero);
     Plus            = new DelegateCommand(DisplayPlus);
     Minus           = new DelegateCommand(DisplayMinus);
     Divison         = new DelegateCommand(DisplayDivision);
     Equal           = new DelegateCommand(EqualButtonOperation);
     Multiplication  = new DelegateCommand(DisplayMultiplication);
     DecimalPoint    = new DelegateCommand(DisplayDecimalPoint);
     ClearBtn        = new DelegateCommand(ClearButton);
 }
Ejemplo n.º 2
0
 public CalcFormViewModel()
 {
     this.M = new Model.CalculatorModel();
 }