예제 #1
0
 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;    
 }
예제 #2
0
 public void Init()
 {
     cell_stats = new CellConfig();
 }