Example #1
0
        public QuestionListView()
        {
            // Create the controller
            controller = new QuestionListController();

            // Handlers for external events
            controller.QuestionsDomainsUpdated += new QuestionListController.ExternalEventHandler(OnQuestionsDomainsUpdated);

            // Register the controller handlers to the service
            controller.RegisterHandlers();

            // Initialize Component
            InitializeComponent();

            // Set the parent and display the window
            SetMdiParent();
            ShowForm();

            // Handlers for internal events
            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(OnFormClosing);
        }
Example #2
0
        public QuestionListView()
        {
            // Create the controller
            controller = new QuestionListController();

            // Handlers for external events
            controller.QuestionsDomainsUpdated += new QuestionListController.ExternalEventHandler(OnQuestionsDomainsUpdated);

            // Register the controller handlers to the service
            controller.RegisterHandlers();

            // Initialize Component
            InitializeComponent();

            // Set the parent and display the window
            SetMdiParent();
            ShowForm();

            // Handlers for internal events
            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(OnFormClosing);
        }