Пример #1
0
        void SignButtonInput(object inputTag)
        {
            switch (inputTag)
            {
                #region signButtons
            case "+":
                _inH.SignInput("+");
                break;

            case "-":
                _inH.SignInput("-");
                break;

            case "*":
                _inH.SignInput("*");
                break;

            case "/":
                _inH.SignInput("/");
                break;

            case "=":
                _calLog.CalculationSetup(true);
                break;
                #endregion signButtons
            }
        }
Пример #2
0
        void SpecialKeyInput(Key input)
        {
            switch (input)
            {
                #region specialKeys
            case Key.Back:
            case Key.Delete:
                _inH.RemoveInput();
                break;

            case Key.Return:
                _calLog.CalculationSetup(true);
                break;

            case Key.OemComma:
            case Key.Decimal:
                _inH.CommaInput();
                break;
                #endregion specialKeys
            }
        }