public Grille() { grid = null; lines = null; columns = null; squares = null; }
public TableCase(TableCase tb) { sizeTable = tb.sizeTable; grid = new Case[sizeTable, sizeTable]; for (int i = 0; i < tb.sizeTable; i++) { for (int j = 0; j < tb.sizeTable; j++) { grid[i, j] = new Case(tb[i, j]); } } }
public void initializeTab(int size) { if (grid == null) { rc = (int)Math.Sqrt((double)size); sizeTable = size; Size = size; grid = new TableCase(size); lines = new TableCase(size); columns = new TableCase(size); squares = new TableCase(size); copyGrid = new List <CopyGrid>(); } }
public void reinit(TableCase tb) { for (int i = 0; i < sizeTable; i++) { for (int j = 0; j < sizeTable; j++) { Case c = grid[i, j]; c.Valeur = tb[i, j].Valeur; c.Line = tb[i, j].Line; c.Square = tb[i, j].Square; c.Hypotheses.Clear(); for (int k = 0; k < tb[i, j].Hypotheses.Count; k++) { c.Hypotheses.Add(tb[i, j].Hypotheses[k]); } } } }
public CopyGrid(TableCase tb, Case c, int test) { GridCopy = tb; caseCopy = c; valueTest = test; }