private void m_serverExplorer_SchemaCompareStarted(object sender, SchemaGeneratedEventArgs e) { string source = m_currentCompareDBTreeNode1 == null ? m_xmlSnapShotFile1 == null ? "unknown" : m_xmlSnapShotFile1 : m_currentCompareDBTreeNode1.Text; string dest = m_currentCompareDBTreeNode2 == null ? m_xmlSnapShotFile2 == null ? "unknown" : m_xmlSnapShotFile2 : m_currentCompareDBTreeNode2.Text; string work = string.Format("Processing DB Compare: {0} - to - {1}", source, dest); this.toolStripStatusLabel2.Text = ""; this.toolStripStatusLabel1.Text = work; _runningCompare = true; this.timer1.Enabled = true; this.progressIndicator.Visible = true; }
private void m_serverExplorer_SchemaCompared(object sender, SchemaGeneratedEventArgs e) { string work = "Finished Processing Schema."; _runningCompare = false; m_currentCompareDBTreeNode1 = null; m_currentCompareDBTreeNode2 = null; m_xmlSnapShotFile1 = null; m_xmlSnapShotFile2 = null; foreach (Document doc in dockPanel.Documents) { if (typeof(XMLDoc).IsInstanceOfType(doc)) { ((XMLDoc)doc).IsSelectedCompare = false; } } this.toolStripStatusLabel2.Text = string.Empty; this.toolStripStatusLabel1.Text = work; disableProgressIndicator(); }