public CellControl(Cell cell, EnvironmentControl environmentControl, int cellSize)
 {
     this.Cell                = cell;
     this._cellSize           = cellSize;
     this._environmentControl = environmentControl;
     this.InitElements();
 }
Example #2
0
        protected override bool SetupSimulation()
        {
            var result = base.SetupSimulation();

            lock (this.locker)
                this.environmentControl = this.CreateEnvironmentControl(((ICellAgent)this.simulation.Agent).Environment);
            return(result);
        }
Example #3
0
        protected override void StopSimulation()
        {
            base.StopSimulation();

            lock (this.locker)
            {
                if (this.environmentControl == null)
                {
                    return;
                }
                this.environmentControl.Dispose();
                this.environmentControl = null;
            }
        }
Example #4
0
 public LimitedUserCellControl(Cell cell, EnvironmentControl environmentControl, int cellSize, bool cellView)
     : base(cell, environmentControl, cellSize)
 {
     this.CellView = cellView;
 }