/*INSERT DATA IN TABLES METHODS*/ public void GetTableInsert(String tableName) { if (Flag_Success == true) { for (int i = 0; i < TableList.Count; i++) { Tabla t = TableList.ElementAt(i); if (t.getName().ToUpper() == tableName.ToUpper()) { InsertTable = i; break; } } } }
public void ImprimirTablas() { String html_Content; String Cabezera_Html; String Title_Table = ""; String Content_Celda = ""; String Content_Table = ""; Cabezera_Html = "<html>" + "<link rel=\"stylesheet\" type=\"text/css\" href=\"bootstrap.css\">" + "<body>"; for (int i = 0; i < TableList.Count; i++) { String Columns_Table = ""; Tabla t = TableList.ElementAt(i); Title_Table = "</br>" + "<h2 align='center'>" + "Tabla" + " " + t.getName() + "</h2></br>" + "<table cellpadding='10' border = '1' align='center'>"; for (int j = 0; j < t.getList().Count; j++) { Entity_Table ts = t.getList().ElementAt(j); Columns_Table += "<td><strong>" + ts.getEntity() + "</strong></td>"; } if (t.getList() != null) { Content_Celda = tx(t); } Content_Table += Title_Table + Columns_Table + "</tr>" + Content_Celda + "</table>"; } html_Content = Cabezera_Html + Content_Table + "</body>" + "</html>"; File.WriteAllText("Tables.html", html_Content); System.Diagnostics.Process.Start("Tables.html"); }