private string PaintCells(CellConfig work_cell) { Dictionary<string, List<ICell>> cells = new Dictionary<string, List<ICell>>(); foreach(CellType type in Enum.GetValues(typeof(CellType))) { List<ICell> list_cells = work_cell.dock.Where(x => x.GetType().Equals(type)).ToList(); cells.Add(type.ToString(), list_cells); } string string_cells = ""; foreach(var pair in cells) { string_cells += "\t" + pair.Key + "\t"+pair.Value.Count.ToString()+"\n"; } return string_cells; }
public void Init() { cell_stats = new CellConfig(); }