private void ActionX_Click(Calc.Actions action) { try { calc.PressAction (action); } catch { Digits.Text = "Error!"; calc.PressClear (); return; } Console.WriteLine (String.Format("Press action {0}", action)); Digits.Text = calc.Result.ToString (); }
public CalcController() { calc = new Calc (); }
public CalcViewController() : base("CalcViewController", null) { calc = new Calc (); }