Пример #1
0
        private void Operations(object sender, EventArgs e)
        {
            double     first  = Convert.ToDouble(textBox1.Text);
            double     second = Convert.ToDouble(textBox2.Text);
            ICalculate Calc   = CalculatorFactory.CreateCalcuator(((Button)sender).Name);
            double     result = Calc.Calculate(first, second);

            textBox3.Text = result.ToString();
        }