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); }
public abstract void Visit(BinaryQuestion element);