public QuestSheetController NewWidth(QuestSheetView view) { QuestSheetController controller = new QuestSheetController(); foreach (ListBox options in view.OptionsGroupedByQuestion) { options.SelectionChanged += Options_SelectionChanged; } return(controller); }
public static QuestSheetView NewWith(QuestSheet model, double backgroundWidth, double padding, StackPanel UI_container) { QuestSheetView questSheet = new QuestSheetView(); questSheet.Model = model; questSheet.BackgroundWidth = backgroundWidth; questSheet.Padding = padding; questSheet.UI_Container = UI_container; questSheet.OptionsGroupedByQuestion = new List <ListBox>(); return(questSheet); }