Exemple #1
0
 protected DiffMode(DiffMode copy)
 {
     m_DataRenderer = copy.m_DataRenderer;
     m_DataRenderer.PrettyNamesOptionChanged += UpdateTableSelectionNames;
     modeFirst      = copy.modeFirst;
     modeSecond     = copy.modeSecond;
     m_SchemaFirst  = copy.m_SchemaFirst;
     m_SchemaSecond = copy.m_SchemaSecond;
     m_SchemaDiff   = copy.m_SchemaDiff;
 }
Exemple #2
0
            public DiffMode(DataRenderer dataRenderer, PackedMemorySnapshot snapshotFirst, PackedMemorySnapshot snapshotSecond)
            {
                m_DataRenderer = dataRenderer;
                m_DataRenderer.PrettyNamesOptionChanged += UpdateTableSelectionNames;
                modeFirst      = new SnapshotMode(dataRenderer, snapshotFirst);
                modeSecond     = new SnapshotMode(dataRenderer, snapshotSecond);
                m_SchemaFirst  = modeFirst.GetSchema();
                m_SchemaSecond = modeSecond.GetSchema();

                m_SchemaDiff = new Database.Operation.DiffSchema(m_SchemaFirst, m_SchemaSecond);
                UpdateTableSelectionNames();
            }
Exemple #3
0
            public DiffMode(DataRenderer dataRenderer, BaseMode snapshotFirst, BaseMode snapshotSecond)
            {
                m_DataRenderer = dataRenderer;
                m_DataRenderer.PrettyNamesOptionChanged += UpdateTableSelectionNames;
                modeFirst      = snapshotFirst;
                modeSecond     = snapshotSecond;
                m_SchemaFirst  = modeFirst.GetSchema();
                m_SchemaSecond = modeSecond.GetSchema();

                m_SchemaDiff = new Database.Operation.DiffSchema(m_SchemaFirst, m_SchemaSecond);
                UpdateTableSelectionNames();
            }
Exemple #4
0
 public DiffMode(ObjectDataFormatter objectDataFormatter, BaseMode snapshotFirst, BaseMode snapshotSecond)
 {
     ProgressBarDisplay.ShowBar("Snapshot diff in progress");
     m_ObjectDataFormatter = objectDataFormatter;
     m_ObjectDataFormatter.PrettyNamesOptionChanged += UpdateTableSelectionNames;
     modeFirst      = snapshotFirst;
     modeSecond     = snapshotSecond;
     m_SchemaFirst  = modeFirst.GetSchema();
     m_SchemaSecond = modeSecond.GetSchema();
     ProgressBarDisplay.UpdateProgress(0.1f, "Building diff schema.");
     m_SchemaDiff = new Database.Operation.DiffSchema(m_SchemaFirst, m_SchemaSecond, () => { ProgressBarDisplay.UpdateProgress(0.3f, "Computing table data"); });
     ProgressBarDisplay.UpdateProgress(0.85f, "Updating table selection.");
     UpdateTableSelectionNames();
     ProgressBarDisplay.ClearBar();
 }