Advertisement
Guest User

Untitled

a guest
Feb 9th, 2016
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. public class Form
  2. {
  3. public Guid Id { get; set; }
  4. public string Title { get; set; }
  5. public List<FormElement> Elements { get; set; }
  6. }
  7.  
  8. public abstract class FormElement
  9. {
  10. public string Name { get; set; }
  11. public string Label { get; set; }
  12. }
  13.  
  14. public class QuestionElement : FormElement
  15. {
  16. public string Type { get; set; }
  17. public bool ReadOnly { get; set; } = false;
  18. }
  19.  
  20. public class GroupElement : FormElement
  21. {
  22. public List<FormElement> Elements { get; set; }
  23. }
  24.  
  25. public class RepeatGroupElement : GroupElement
  26. {
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement