示例#1
0
 public Grille()
 {
     grid    = null;
     lines   = null;
     columns = null;
     squares = null;
 }
示例#2
0
 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]);
         }
     }
 }
示例#3
0
 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>();
     }
 }
示例#4
0
 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]);
             }
         }
     }
 }
示例#5
0
 public CopyGrid(TableCase tb, Case c, int test)
 {
     GridCopy  = tb;
     caseCopy  = c;
     valueTest = test;
 }