コード例 #1
0
        private void result_Click(object sender, EventArgs e)
        {
            calc.secondNumber = double.Parse(display.Text);
            calc.calculate();

            display.Text = calc.result.ToString();
        }
コード例 #2
0
 private void result_click(object sender, EventArgs e)
 {
     calc.second_number = float.Parse(textBox1.Text);
     calc.calculate();
     textBox1.Text = calc.result+"";
 }