public CellControl(Cell cell, EnvironmentControl environmentControl, int cellSize) { this.Cell = cell; this._cellSize = cellSize; this._environmentControl = environmentControl; this.InitElements(); }
protected override bool SetupSimulation() { var result = base.SetupSimulation(); lock (this.locker) this.environmentControl = this.CreateEnvironmentControl(((ICellAgent)this.simulation.Agent).Environment); return(result); }
protected override void StopSimulation() { base.StopSimulation(); lock (this.locker) { if (this.environmentControl == null) { return; } this.environmentControl.Dispose(); this.environmentControl = null; } }
public LimitedUserCellControl(Cell cell, EnvironmentControl environmentControl, int cellSize, bool cellView) : base(cell, environmentControl, cellSize) { this.CellView = cellView; }