public void refreshSqlServer(DataTable dtb, LibraryFramework.DatabaseSqlServer.Koneksi kon) { lstTable.Items.Clear(); foreach (DataRow row in dtb.Rows) { lstTable.Items.Add(row["table_name"].ToString()); } this.konSqlServer = kon; dataDatabaseSqlServer = new DataDatabaseSqlServer(kon.Con); gvfSchema = new GridViewFunction(dgvSchema); lstTable.SelectedIndex = 0; }
public void refreshMySql(DataTable dtb, LibraryFramework.DatabaseMySql.Koneksi con, string databaseMySql) { lstTable.Items.Clear(); foreach (DataRow row in dtb.Rows) { lstTable.Items.Add(row["table_name"].ToString()); } this.konMySql = con; dataDatabaseMySql = new DataDatabaseMySql(konMySql.Con); gvfSchema = new GridViewFunction(dgvSchema); this.databaseMySql = databaseMySql; lstTable.SelectedIndex = 0; }