Esempio 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...";
     }
 }
Esempio 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";
     }
 }
Esempio 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);
     }
 }