/// <summary> /// Remove cells with (c.column >= horSize) && (c.row >= vertSize) /// /// </summary> /// <param name="list"></param> private void CleanMainObjects(List <CellData> list) { if (list != null && mSet != null) { list.RemoveAll((c) => { return(!BubbleGrid.ok(c.Row, c.Column, vertSize, horSize) || !mSet.ContainMainID(c.ID)); }); } }