Example #1
0
 private void toolStripTextBox1_TextChanged(object sender, EventArgs e)
 {
     try
     {
         string s = toolStripTextBox1.Text;
         if (s == "")
         {
             toolStripTextBox3.Text = "";
             return;
         }
         interpreter.Interpret(s);
         toolStripTextBox3.Text = interpreter.Result().ToString();
     }
     catch (Exception ex)
     {
         toolStripTextBox3.Text = ex.Message;
     }
 }