Exemplo n.º 1
0
        private void startButton_Click(object sender, EventArgs e)
        {
            if (headerTextBox.Text == "")
            {
                MessageBox.Show("Для начала консультации загрузите базу знаний.");
            }
            else
            {
                questionCount   = 0;
                isStarted       = true;
                isButtonsActive = false;

                isButtonsActive = questionWriter.Current(isButtonsActive, isStarted, currentQuestionTextBox, questionCount, knowledgeBase).Item1;
                isStarted       = questionWriter.Current(isButtonsActive, isStarted, currentQuestionTextBox, questionCount, knowledgeBase).Item2;
                ButtonSwitcher(isButtonsActive, isStarted);
                questionCount++;
                questionWriter.All(questionTextBox, questionCount, knowledgeBase);
            }
        }