public static Dictionary <string, string> getTables(string connName) { Dictionary <string, string> ret = new Dictionary <string, string>(); DatabaseAdmin dba = DatabaseAdmin.getInstance(connName); List <string> tables = dba.getTableNames(); foreach (string table in tables) { string text = dba.getTableTitle(table); if (string.IsNullOrEmpty(text)) { text = table; } ret.Add(table, text); } return(ret); }