Exemple #1
0
 private void MULTI_Click(object sender, EventArgs e)
 {
     Fnum         = double.Parse(TEXTENT.Text);
     action       = "*";
     TEXTENT.Text = TEXTENT.Text + "*";
     TEXTENT.Clear();
 }
Exemple #2
0
 private void MINUS_Click(object sender, EventArgs e)
 {
     Fnum         = Convert.ToDouble(TEXTENT.Text);
     action       = "-";
     TEXTENT.Text = TEXTENT.Text + "-";
     TEXTENT.Clear();
 }
Exemple #3
0
 private void PLUS_Click(object sender, EventArgs e)
 {
     Fnum          = double.Parse(TEXTENT.Text);
     TEXTENT.Text += "+";
     sNum         += Fnum;
     action        = "+";
     TEXTENT.Clear();
 }
Exemple #4
0
 private void CLEAR_Click(object sender, EventArgs e)
 {
     TEXTENT.Clear();
     sNum = 0;
     Fnum = 0;
 }