Beispiel #1
0
 public AnswerItemPage(Action<Action> safeAction, QuestionnairePresenter questionnairePresenter)
 {
     InitializeComponent();
     _safeAction = safeAction;
     _questionnairePresenter = questionnairePresenter;
     SetListBoxStyle(questionnairePresenter);
 }
Beispiel #2
0
 void SetListBoxStyle(QuestionnairePresenter questionnairePresenter)
 {
     switch (questionnairePresenter.Questionnaire.Type)
     {
         case QuestionnaireType.ListedAnswers:
             answersListBox.Style = null;
             break;
         case QuestionnaireType.Likert:
             break;
         default:
             throw new ArgumentOutOfRangeException();
     }
 }
Beispiel #3
0
 public InstructionPage(Action<Action> safeAction, QuestionnairePresenter questionnairePresenter)
 {
     _safeAction = safeAction;
     QuestionnairePresenter = questionnairePresenter;
     InitializeComponent();
 }