/// <summary> /// 增加一个数据库连接 /// </summary> /// <param name="databaseConn"></param> public void AddConn(UserConn conn) { Database databaseConn = conn.Database; TreeNode nodeTable, nodeView; TreeNode nodeDatabase = new TreeNode(databaseConn.ConnName, 7, 7, new TreeNode[] { nodeTable = new TreeNode("数据表[加载中...]", 6, 6), nodeView = new TreeNode("视图[加载中...]", 6, 6) }); nodeDatabase.Tag = conn; trvDatabase.Nodes.Add(nodeDatabase); DataSchema.InitDataSchema(conn); }