예제 #1
0
 /// <summary>
 /// Cargamos el treeview con los
 /// </summary>
 private void LoadDBTables()
 {
     foreach (string dbName in dbEngine.GetDatabases())
     {
         TreeNode parentNode = new TreeNode(dbName, 0, 0);
         foreach (string tableName in dbEngine.GetTables(dbName))
         {
             TreeNode childNode = new TreeNode(tableName, 1, 1);
             parentNode.Nodes.Add(childNode);
         }
         tvDBView.Nodes.Add(parentNode);
     }
 }