internal void ShowChoices() { SuspendLayout(); choices = new Models.QuestionChoices(question, Models.Layout.View.BigScreen); tlpQuestion.Controls.Add(choices, 0, 2); tlpQuestion.SetColumnSpan(choices, 3); ResumeLayout(false); PerformLayout(); }
private void LoadCurrentQuestion() { SuspendLayout(); Level level = Level.GetByID(currentQuestion.Level); lblCurrentSequence.Text = "#" + currentQuestion.Sequence; lblCurrentDifficulty.Text = level.Name.ToUpper(); if (currentQuestion.PassPlay) { lblCurrentPoints.Text = "+" + (level.Special * 3) + " or -" + (level.Special * 2) + " Points"; } else { lblCurrentPoints.Text = "+" + level.Score + " Points"; } lblCurrentQuestionStatement.Text = currentQuestion.QuestionStatement; if (questionChoices != null) { questionChoices.Dispose(); } questionChoices = new Models.QuestionChoices(currentQuestion, Models.Layout.View.ControllerEmbed); tlpCurrentQuestion.Controls.Add(questionChoices, 0, 4); tlpCurrentQuestion.SetColumnSpan(questionChoices, 6); if (game.Finished || currentQuestion.ID < Settings.Current.Question.ID) { questionChoices.RevealAnswer(); } grouppoints.UpdateCheckBoxes(currentQuestion); lblPointsTo.Text = "Points (Question #" + currentQuestion.Sequence + ")"; ResumeLayout(false); PerformLayout(); if (currentQuestion.PassPlay && Settings.Current.Question.ID == currentQuestion.ID) { dlgPassOrPlay passorplay = new dlgPassOrPlay(this, currentQuestion); passorplay.ShowDialog(); } }