Exemplo n.º 1
0
 protected override void OnConnect()
 {
     RealNode.ExpandNode();
     if (m_conn.Settings.Tree().AutoExpandTables)
     {
         MainWindow.Instance.RunInMainWindow(RealNode.ChildByName("tables").ExpandNode);
     }
 }
Exemplo n.º 2
0
 //public override void GetScriptingNS(IDictionary<string, object> names, IPhysicalConnection dstConnection)
 //{
 //    names["db"] = new DatAdmin.Scripting.Database(m_conn);
 //}
 //public override void GetPopupMenu(MenuBuilder menu)
 //{
 //    base.GetPopupMenu(menu);
 //    m_commands.GetPopupMenu(menu);
 //}
 public override void NotifyExpanded()
 {
     if (m_conn.Settings.Tree().AutoExpandTables)
     {
         try
         {
             MainWindow.Instance.RunInMainWindow(RealNode.ChildByName("tables").ExpandNode);
         }
         catch (Exception) { }
     }
 }
Exemplo n.º 3
0
 public override void NotifyExpanded()
 {
     if (m_conn.Settings != null && m_conn.Settings.Tree().AutoExpandTables)
     {
         IRealTreeNode child = RealNode.ChildByName("tables");
         if (child != null)
         {
             MainWindow.Instance.RunInMainWindow(child.ExpandNode);
         }
     }
 }
Exemplo n.º 4
0
        protected override void OnConnect()
        {
            RealNode.ExpandNode();
            bool expand;

            try { expand = m_conn.Connection.FindSettings(null).Tree().AutoExpandDatabases; }
            catch { expand = false; }
            if (expand)
            {
                MainWindow.Instance.RunInMainWindow(RealNode.ChildByName("databases").ExpandNode);
            }
        }