static void Main(string[] args) { CalculatorFormula calculatorFormula = new CalculatorFormula(); calculatorFormula.OperationCode = 4; calculatorFormula.Number1 = 3; calculatorFormula.Number2 = 5; calculatorFormula.Calculate(); Console.WriteLine(calculatorFormula.Result); }
public Calculator() { InitializeComponent(); calculatorFormula = new CalculatorFormula(); isSecondNumber = false; }