コード例 #1
0
        protected void PerformBackspace()
        {
            if (MathExeprission == "")
            {
                return;
            }

            if (MathExeprission[MathExeprission.Length - 1] == ' ')
            {
                MathExeprission = MathExeprission.RemoveLastChar();
            }
            MathExeprission = MathExeprission.RemoveLastChar();
            ClearResult();
        }
コード例 #2
0
 private void CalculateDefault()
 {
     ResultLabel.BackColor = SystemColors.InactiveCaption;
     try
     {
         ANS    = MathExeprission.ReplaceVariables(VariablesManager.ReadVariables()).GetNaitveMathExeprission().Calculate();
         Result = ANS;
     }
     catch
     {
         /*
          * Because here there is a label for errors
          */
         ShowError(ApplicationErrors.CalculatingError);
         //Error.ThrowError(ApplicationErrors.CalculatingError);
     }
 }