コード例 #1
0
 public override void Visit(BinaryQuestion element)
 {
     _result = new FormPanel();
     _result.Children.Add(new Label { Content = element.Title });
     _result.Children.Add(new RadioButton { GroupName = element.Title, Content = "Oui", IsChecked = false });
     _result.Children.Add(new RadioButton { GroupName = element.Title, Content = "Non", IsChecked = false });
     if (!(element as BinaryQuestion).IsRequired)
     {
         _result.Children.Add(new RadioButton { GroupName = element.Title, Content = "Ne se prononce pas", IsChecked = false });
     }
     AddChildren(element);
 }
コード例 #2
0
 public abstract void Visit(BinaryQuestion element);