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); } }
partial void DeleteQuestions(Questions instance);
partial void UpdateQuestions(Questions instance);
partial void InsertQuestions(Questions instance);