コード例 #1
0
        /// <summary>
        /// Ask user for questions
        /// </summary>
        private void AskQuestions()
        {
            foreach (var question in this.BaseQuestions)
            {
                var x = ConsoleHelper.Ask(question.Question);
                if (x != "")
                {
                    question.Response = x;
                }
                this.Responses[question.Shortname] = question.Response;

                if (question.Shortname == "tag")
                {
                    this.Tag = question.Response;
                }
            }

            foreach (var question in this.Questions)
            {
                var x = ConsoleHelper.Ask(question.Question);
                if (x != "")
                {
                    question.Response = x;
                }
                this.Responses[question.Shortname] = question.Response;
            }
        }