Beispiel #1
0
        private static void AddOptions(Paragraph p, Questions question, OptionControl optionControl)
        {
            var options = question.Options.OrderBy(o => o.Order);

            for (int i = 0; i < options.Count(); i++)
            {
                if (i != 0)
                {
                    p.Inlines.Add(Environment.NewLine);
                }
                var control = new InlineUIContainer()
                {
                    Child = optionControl()
                };
                p.Inlines.Add(control);
                p.Inlines.Add(" ");
                p.Inlines.Add(options.ElementAt(i).Option);
            }
        }
Beispiel #2
0
 partial void DeleteQuestions(Questions instance);
Beispiel #3
0
 partial void UpdateQuestions(Questions instance);
Beispiel #4
0
 partial void InsertQuestions(Questions instance);