Exemple #1
0
        protected void UpdateDimensions()
        {
            if (_model == null)
            {
                _model = new LifeModel(this.Dimensions, _game);
            }
            else
            {
                _model.Dimension = this.Dimensions;
            }

            DrawGrid();
            DrawModel();
        }
 public Form1()
 {
     InitializeComponent();
     Model = new LifeModel(60, 60);
 }