Example #1
0
        /// <summary>
        /// Metoda se stará o inicializaci a předání informací parseru
        /// </summary>
        private void vypocitat()
        {
            if (textBox1.Text == "")
            {
                textBox2.Text = "= 0 ";
                return;
            }
            string func = textBox1.Text;

            p        = new Parser();
            vysledek = p.Vypocitat(func);

            textBox2.Text = double.IsNaN(vysledek) ? "Nelze spočítat " : "= " + vysledek.ToString() + " ";
        }