//Load all of the games in the background private void bwLoadGames_DoWork(object sender, DoWorkEventArgs e) { if (allGames == null) { allGames = DB_Select.SelectAllGames(); } }
private void bwLoadGame_DoWork(object sender, System.ComponentModel.DoWorkEventArgs e) { game = DB_Select.SelectGame_ByGameId(game.Id); }
private void bwLoadGameToEdit_DoWork(object sender, DoWorkEventArgs e) { selectedGame = DB_Select.SelectGame_ByGameId(selectedGame.Id); }
//Load the game list in a background thread so it does not freeze the form private void bwLoadGames_DoWork(object sender, DoWorkEventArgs e) { allGames = DB_Select.SelectAllGameInfo(); //now selects only top level game info, not the categories and questions, etc. }
//background thread to load/reload the game from the database private void bwLoadGame_DoWork(object sender, DoWorkEventArgs e) { game = DB_Select.SelectGame_ByGameId(game.Id); }