Esempio n. 1
0
 private void m_serverExplorer_TableUnSelected(object sender, TableTreeEventArgs e)
 {
     // update display of selected table names
     m_currentSelectedTableTreeNode = null;
     if (sourceTableName.Equals(e.TableTreeNode.FullTablePath))
     {
         sourceTableName = string.Empty;
         selectedTables[0] = null;
         selectedTablesMenuItem.Enabled = false;
         this.toolStripStatusLabel1.Text = string.Empty;
     }
     if (targetTableName.Equals(e.TableTreeNode.FullTablePath))
     {
         targetTableName = string.Empty;
         selectedTables[1] = null;
         selectedTablesMenuItem.Enabled = false;
         this.toolStripStatusLabel2.Text = string.Empty;
     }
     if (sourceTableName == string.Empty && targetTableName == string.Empty)
     {
         m_serverExplorer.ClearSelected(SQLServerExplorer.SelectedTypes.Tables);
     }
 }
Esempio n. 2
0
 private void m_serverExplorer_TableSelected(object sender, TableTreeEventArgs e)
 {
     // display selected tables for compare
     m_currentSelectedTableTreeNode = e.TableTreeNode;
     if (sourceTableName == string.Empty)
     {
         sourceTableName = e.TableTreeNode.FullTablePath;
         selectedTables[0] = e.TableTreeNode;
         this.toolStripStatusLabel1.Text = "Source Table: " + sourceTableName + "...";
     }
     else if (targetTableName == string.Empty)
     {
         targetTableName = e.TableTreeNode.FullTablePath;
         selectedTables[1] = e.TableTreeNode;
         this.toolStripStatusLabel2.Text = "Target Table: " + targetTableName + "...";
     }
     if (sourceTableName != string.Empty && targetTableName != string.Empty)
     {
         selectedTablesMenuItem.Enabled = true;
     }
 }
Esempio n. 3
0
 private void m_serverExplorer_TableCompareStarted(object sender, TableTreeEventArgs e)
 {
     this.selectedTablesToolStripMenuItem_Click(sender, e);
 }