private void btnUpdate_Click(object sender, EventArgs e)
        {
            string test = "A+B-(C-D)+Abs(E)";

            if (FormulaC.IsValid(test))
            {
                string x = FormulaC.GetFormula(test);
            }
        }
Ejemplo n.º 2
0
        private bool CheckInput()
        {
            try
            {
                if (FormulaC.IsValid(txtSalF.Text.Trim()) == false)
                {
                    return(false);
                }

                string s = FormulaC.GetFormula(txtSalF.Text.Trim());
                return(true);
            }
            catch (Exception ex)
            {
                return(false);
            }
        }