Exemplo n.º 1
0
 internal bool IsEquivalent(DataMatrix solutionMatrix)
 {
     for (int i = 0; i < Width; i++)
     {
         List <CellsBlock> current = GetCountersListSorted(i, null);
         List <CellsBlock> target  = solutionMatrix.GetCountersListSorted(i, null);
         if (current.Count != target.Count)
         {
             return(false);
         }
         for (int j = 0; j < current.Count; j++)
         {
             if (current[j].Length != target[j].Length)
             {
                 return(false);
             }
         }
     }
     return(true);
 }
 public DataUpdatedEventArgs(DataMatrix data, DataMatrix solution, ResultEvent.ResultType result)
 {
     Data     = data;
     Solution = solution;
     Result   = result;
 }