protected void PerformBackspace() { if (MathExeprission == "") { return; } if (MathExeprission[MathExeprission.Length - 1] == ' ') { MathExeprission = MathExeprission.RemoveLastChar(); } MathExeprission = MathExeprission.RemoveLastChar(); ClearResult(); }
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); } }