Example #1
0
        static void Main(string[] args)
        {
            CalculatorFormula calculatorFormula = new CalculatorFormula();

            calculatorFormula.OperationCode = 4;
            calculatorFormula.Number1       = 3;
            calculatorFormula.Number2       = 5;
            calculatorFormula.Calculate();
            Console.WriteLine(calculatorFormula.Result);
        }
Example #2
0
 public Calculator()
 {
     InitializeComponent();
     calculatorFormula = new CalculatorFormula();
     isSecondNumber    = false;
 }