示例#1
0
        public void CreateConstructs(ICollection <QuestionVM> questions)
        {
            //Call when the display of the question editing screen is finished
            ControlConstructSchemeVM scheme = FindDefaultControlConstructScheme();

            if (scheme == null)
            {
                return;
            }
            foreach (QuestionVM question in questions)
            {
                if (question.IsCreatedConstruct)
                {
                    continue;
                }
                question.IsCreatedConstruct = true;
                scheme.InsertQuestionConstruct(question, false);
            }
        }