private void ButtonAllClear_Click(object sender, EventArgs e) { ResultsDisplayBox.Clear(); ResultsDisplayBox.Text = "0"; ResultValue = 0; ChainOperationLabel.Text = ""; }
private void numberButton_Click(object sender, EventArgs e) { Button CalcNumberButton = (Button)sender; if ((ResultsDisplayBox.Text == "0")) { ResultsDisplayBox.Clear(); } // isOperationPerformed = false; ResultsDisplayBox.Text += CalcNumberButton.Text; ChainOperationLabel.Text += CalcNumberButton.Text; }