private void bwUpdateTimeLimit_DoWork(object sender, DoWorkEventArgs e) //also update in db for future games { //Updates the database whenever the user changes the question time limit if (!DB_Update.UpdateGameQuestionTimeLimit(game.QuestionTimeLimit, game.Id)) { MessageBox.Show("Error updating Game name"); } }
private void bwUpdateTimeLimit_DoWork(object sender, DoWorkEventArgs e) { DB_Update.UpdateGameQuestionTimeLimit(game.QuestionTimeLimit, game.Id); }