private void result_Click(object sender, EventArgs e) { calc.secondNumber = double.Parse(display.Text); calc.calculate(); display.Text = calc.result.ToString(); }
private void result_click(object sender, EventArgs e) { calc.second_number = float.Parse(textBox1.Text); calc.calculate(); textBox1.Text = calc.result+""; }