void ForceHide() { foreach (CellDescriptor cell in FieldGrid.Elements) { CellAlphaProcManager.ForceHideCell(cell); } foreach (NestDescriptor nest in NestGrid.Elements) { foreach (CellDescriptor cell in nest.Elements) { CellAlphaProcManager.ForceHideCell(cell); } } }
void HighlighAll() { foreach (CellDescriptor cell in FieldGrid.Elements) { CellAlphaProcManager.HighlightCell(cell); } foreach (NestDescriptor nest in NestGrid.Elements) { foreach (CellDescriptor cell in nest.Elements) { CellAlphaProcManager.HighlightCell(cell); } } }
public override void Execute() { foreach (NestDescriptor nest in NestGrid.Elements) { nest.AssignShape(ShapesGenerator.GenShape()); nest.AssignFilling(FillGenerator.GenFilling()); } foreach (NestDescriptor nest in NestGrid.Elements) { nest.Used = false; foreach (CellDescriptor cell in nest.Elements) { if (cell.Enabled) { CellAlphaProcManager.HighlightCell(cell); } } } }