public static DataTable RequestLoad(DB_ID id) { for (int i = 0; i < databseList.Count; i++) { DatabaseLoadData data = databseList[i]; if (data.id != id) { continue; } if (data.isLoaded) { continue; } SqliteDatabase sqlDB = new SqliteDatabase(data.dbName + ".db"); string selectQuery = "SELECT * FROM " + data.tableName; data.dataTable = sqlDB.ExecuteQuery(selectQuery); data.isLoaded = true; return(data.dataTable); } return(null); }
DatabaseLoadData GetData(DB_ID id, string dbName, string tableName) { DatabaseLoadData data = new DatabaseLoadData(); data.dbName = dbName; data.tableName = tableName; data.id = id; return(data); }
public static bool IsLoaded(DB_ID id) { for (int i = 0; i < databseList.Count; i++) { DatabaseLoadData data = databseList[i]; if (data.id != id) { continue; } return(data.isLoaded); } return(false); }