Exemple #1
0
 private void ClearClick(object sender, EventArgs e)
 {
     first_num  = 0;
     second_num = 0;
     ResultBoxOne.Clear();
     ResultBoxTwo.Clear();
     operarator_pressed = false;
 }
Exemple #2
0
        private void NumeralClick(object sender, EventArgs e)
        {
            if (operarator_pressed == true)
            {
                ResultBoxTwo.Text = ResultBoxOne.Text;
                ResultBoxOne.Clear();
            }
            Button bnum = (Button)sender;

            ResultBoxOne.Text  = ResultBoxOne.Text + bnum.Text;
            operarator_pressed = false;
        }
Exemple #3
0
 private void ClearEntryClick(object sender, EventArgs e)
 {
     ResultBoxOne.Clear();
     operarator_pressed = false;
 }