Ejemplo n.º 1
0
        public GoLController(FrmGoLView paramView, GoLModel paramModel)
        {
            this.View  = paramView;
            this.Model = paramModel;

            this.Model.RegisterObserver(this);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// designated constructor
 /// </summary>
 public FrmGoLView(GoLModel paramModel)
 {
     InitializeComponent();
     // workaround for setting DoubleBuffered property of Panel class, property which is protected.
     typeof(Panel).InvokeMember("DoubleBuffered",
                                BindingFlags.SetProperty | BindingFlags.Instance | BindingFlags.NonPublic,
                                null,
                                pnlCellsArea,
                                new object[] { true });
     this.Model = paramModel;
     if (this.Model == null)
     {
         this.Model = new GoLModel();
     }
     this.Controller = new GoLController(this, this.Model);
 }