Пример #1
0
        public frmCalculations()
        {
            InitializeComponent();

            Calculator1 = new Calculator();

            Calculator1.FactorialComplete += new
                Calculator.FactorialCompleteHandler(this.FactorialHandler);
            Calculator1.FactorialMinusOneComplete += new
                Calculator.FactorialCompleteHandler(this.FactorialMinusHandler);
            Calculator1.AddTwoComplete += new
                Calculator.AddTwoCompleteHandler(this.AddTwoHandler);
            Calculator1.LoopComplete += new
                Calculator.LoopCompleteHandler(this.LoopDoneHandler);
        }
Пример #2
0
 public FrmCalculations()
 {
     InitializeComponent();
     _calculator1 = new Calculator();
 }