Advertisement
Guest User

Untitled

a guest
Aug 24th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. public SelectionOne selectionOne;
  2. public Option1 optionOne ;
  3. public Option2 optionTwo;
  4.  
  5. public static IForm<MyForm> BuildForm()
  6. {
  7. return new FormBuilder<MyForm>()
  8. .Message("Welcome MyForm.")
  9.  
  10. .OnCompletion(async (context, profileForm) =>
  11. {
  12. // Tell the user that the form is complete
  13. await context.PostAsync("Thanks.");
  14. })
  15. .Build();
  16. }
  17. }
  18.  
  19. [Serializable]
  20.  
  21. public enum SelectionOne
  22. {
  23. obj1=1,
  24. obj2=2,
  25. obj3=3,
  26. obj4= 4,
  27. obj5= 5,
  28. obj6= 6
  29. }
  30.  
  31. [Serializable]
  32. public enum Option1
  33. {
  34. Type1 = 100,
  35. Type2 = 150,
  36. Type3 = 220
  37. }
  38. public enum Option2
  39. {
  40. Type1 = 100,
  41. Type2 = 220
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement