Exemplo n.º 1
0
 public GuiModel(IGuiView View)
 {
     if (View == null)
     {
         throw new ArgumentNullException("View");
     }
     this.View = View;
     this.View.CalculatePushed += DoCalculation;
     this.Calculator            = new Calculator();
 }
Exemplo n.º 2
0
 public GuiModel(IGuiView View)
 {
     if (View == null)
     {
         throw new ArgumentNullException("View");
     }
     this.View = View;
     this.View.CalculatePushed += DoCalculation;
     this.Calculator = new Calculator();
 }