private void ClearClick(object sender, EventArgs e) { first_num = 0; second_num = 0; ResultBoxOne.Clear(); ResultBoxTwo.Clear(); operarator_pressed = false; }
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; }
private void ClearEntryClick(object sender, EventArgs e) { ResultBoxOne.Clear(); operarator_pressed = false; }