Beispiel #1
0
 private void refreshCompare(bool refreshTransform)
 {
     if (refreshTransform)
     {
         _databaseTransformer.refresh();
     }
     //refresh transformation and load of new and original database
     _comparer = new DB_EA.Compare.EADatabaseComparer((DB_EA.Database)_databaseTransformer.newDatabase, (DB_EA.Database)_databaseTransformer.existingDatabase);
     _comparer.compare();
     this.dbCompareControl.loadComparison(_comparer);
 }
        private void refreshCompare(bool refreshTransform)
        {
            var startTime = System.DateTime.Now;

            EAOutputLogger.log("Comparing database...");
            //refresh transformation and load of new and original database
            if (refreshTransform)
            {
                _databaseTransformer.refresh();
            }
            //then compare
            _comparer = new DB_EA.Compare.EADatabaseComparer((DB_EA.Database)_databaseTransformer.newDatabase, (DB_EA.Database)_databaseTransformer.existingDatabase);
            _comparer.compare();
            //then load the comparison in the GUI
            this.dbCompareControl.loadComparison(_comparer);
            //let the user know we have finished
            EAOutputLogger.log("Finished in " + (System.DateTime.Now - startTime));
        }