示例#1
0
 //Load all of the games in the background
 private void bwLoadGames_DoWork(object sender, DoWorkEventArgs e)
 {
     if (allGames == null)
     {
         allGames = DB_Select.SelectAllGames();
     }
 }
示例#2
0
 private void bwLoadGame_DoWork(object sender, System.ComponentModel.DoWorkEventArgs e)
 {
     game = DB_Select.SelectGame_ByGameId(game.Id);
 }
示例#3
0
 private void bwLoadGameToEdit_DoWork(object sender, DoWorkEventArgs e)
 {
     selectedGame = DB_Select.SelectGame_ByGameId(selectedGame.Id);
 }
示例#4
0
 //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.
 }
示例#5
0
 //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);
 }