Ejemplo n.º 1
0
 private void button2_Click(object sender, EventArgs e)  //Equal
 {
     try{
         textBox2.Text = StringEvaluater.Eval(textBox1.Text, variables).ToString();
     }
     catch (Exception) {
         textBox2.Text = "Math ERROR...";
     }
 }
Ejemplo n.º 2
0
 private void PrintResult(object sender, EventArgs e)
 {
     try
     {
         ResultScreen.Text = StringEvaluater.Eval(Screen.Text, variables).ToString();
     }
     catch (Exception)
     {
         ResultScreen.Text = "MATH ERROR";
     }
 }
Ejemplo n.º 3
0
 private void PrintResult(object sender, EventArgs e)
 {
     try
     {
         variables["Ans"]  = StringEvaluater.Eval(Screen.Text, variables);
         ResultScreen.Text = variables["Ans"].ToString();
     }
     catch (Exception)
     {
         ResultScreen.Text = "MATH ERROR";
         //MessageBox.Show(exception.Message);
     }
 }