Beispiel #1
0
        private void StartGameButton_Click(object sender, EventArgs e)
        {
            //if (string.IsNullOrWhiteSpace(playerNameBox.Text))
            //    return;

            var selectedButton = choosePackGroupBox.Controls.OfType <RadioButton>().Where(x => x.Checked).FirstOrDefault();

            questionController.LoadQuestionPack(selectedButton.Text);
            initialPanel.Visible = false;
            gamePanel.Visible    = true;
            questionController.SetQuestionController(-1, QuestionType.Default);
            NewQuestion();
        }
        private void NameEnteredButton_Click(object sender, EventArgs e)
        {
            if (String.IsNullOrWhiteSpace(InputPackNameTextBox.Text))
            {
                MessageBox.Show("Введите название набора!");
                return;
            }

            questionController.SavePackName(InputPackNameTextBox.Text);
            PackNameGroupBox.Visible  = false;
            QuestionsGroupBox.Visible = true;
            questionController.SetQuestionController(0);
            UpdateCounter(CounterLabel1, 0);
            FillTextBoxes(QuestionsGroupBox);
        }