Example #1
0
        //----------------------------------------------------------
        public static CDifferencesTables GetDifferences(DataTable tableFinale, DataTable tableOriginale)
        {
            //if (tableFinale == null && tableOriginale == null)
            //    return null;
            CDifferencesTables differences = new CDifferencesTables();

            differences.CalculeModifications(tableFinale, tableOriginale);
            if (differences.HasDifferences())
            {
                return(differences);
            }
            return(null);
        }
Example #2
0
 //--------------------------------------------------------------------------------
 public IDifferencesBlob GetDifferencesBlob(string strChamp, byte[] data, byte[] dataOriginal)
 {
     if (strChamp == c_champTblBlob)
     {
         DataTable tableFinale    = null;
         DataTable tableOriginale = null;
         if (data != null)
         {
             tableFinale = ReadTable(data);
         }
         if (dataOriginal != null)
         {
             tableOriginale = ReadTable(dataOriginal);
         }
         return(CDifferencesTables.GetDifferences(tableFinale, tableOriginale));
     }
     return(null);
 }