Example #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            Calculator calc = new Calculator();
            CalculatorForm calcForm = new CalculatorForm(calc);
            calc.setForm(calcForm);

            Application.Run(calcForm);
        }
Example #2
0
 public CalculatorForm(Calculator calc)
 {
     this.calc = calc;
     InitializeComponent();
 }