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

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

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