public AlternativeVariantEditControl(AlternativeQuestionAnswer alternativeQuestionAnswer) : this()
 {
     if (alternativeQuestionAnswer.IsYesAnswer)
     {
         radioButtonYes.Checked = true;
     }
     else
     {
         radioButtonNo.Checked = true;
     }
 }
 public AlternativeVariantPassControl(AlternativeQuestionAnswer alternativeQuestionAnswer, bool isPreviewState)
 {
     InitializeComponent();
     answer = alternativeQuestionAnswer;
     if (isPreviewState)
     {
         if (alternativeQuestionAnswer.IsYesAnswer)
         {
             radioButtonYes.Checked = true;
         }
         else
         {
             radioButtonNo.Checked = true;
         }
         radioButtonYes.AutoCheck = false;
         radioButtonNo.AutoCheck  = false;
     }
 }
Exemplo n.º 3
0
 public AlternativeQuestionAnswer(AlternativeQuestionAnswer answerToClone)
 {
     IsYesAnswer = answerToClone.IsYesAnswer;
 }