예제 #1
0
        public QuestSheetController NewWidth(QuestSheetView view)
        {
            QuestSheetController controller = new QuestSheetController();

            foreach (ListBox options in view.OptionsGroupedByQuestion)
            {
                options.SelectionChanged += Options_SelectionChanged;
            }
            return(controller);
        }
예제 #2
0
        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);
        }