private void btnPlay_Click(object sender, EventArgs e) { if (!Builder.Connected) { return; } Dialogs.SelectGame selectgame = new Dialogs.SelectGame(Game.Filter.Unfinished); if (selectgame.ShowDialog() == DialogResult.OK) { playgame = new Play.frmControls(selectgame.SelectedGame, this); playgame.Show(); this.Hide(); } }
private void btnManageQuestions_Click(object sender, EventArgs e) { if (!Builder.Connected) { return; } if (manageQuestions != null) { manageQuestions.Dispose(); } Dialogs.SelectGame selectgame = new Dialogs.SelectGame(Game.Filter.Unfinished); if (selectgame.ShowDialog() == DialogResult.OK) { manageQuestions = new Management.frmQuestions(this, selectgame.SelectedGame); manageQuestions.Show(); manageQuestions.Focus(); } }