public CalculatorBody()
 {
     this.sum        = new Addition();
     this.difference = new Subtraction();
     this.product    = new Multiplication();
     this.quotient   = new Division();
     this.exponent   = new Exponentiation();
     this.sqrt       = new SquareRoot();
     this.fact       = new Factorial();
     this.input      = new UserInputOutput();
 }
 public CalculatorBody()
 {
     this.sum = new Addition();
     this.difference = new Subtraction();
     this.product = new Multiplication();
     this.quotient = new Division();
     this.exponent = new Exponentiation();
     this.sqrt = new SquareRoot();
     this.fact = new Factorial();
     this.input = new UserInputOutput();
 }
Exemplo n.º 3
0
 private void Form1_Load(object sender, EventArgs e)
 {
     calculator                         = new Calculator();
     temproraryString                   = "";
     canvas                             = this.graphPanel.CreateGraphics();
     this.Lable.TextChanged            += this.changeTextAction;
     this.tabControl.Click             += this.changeFocusTabControl;
     this.FormBorderStyle               = FormBorderStyle.FixedToolWindow;
     this.factorial                     = new Factorial();
     this.textBoxFactorial.KeyPress    += this.textBoxPressKey;
     this.textBoxFactorial.TextChanged += this.textInTBChanged;
 }