private void SetFunction(object sender, EventArgs e) { this.number1 = this.InputValue; this.textBox.Text = ""; this.function = (sender as Button).Text; }