コード例 #1
0
ファイル: QuestionListView.cs プロジェクト: dianatatu/REACH
        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);
        }
コード例 #2
0
ファイル: QuestionListView.cs プロジェクト: dianatatu/REACH
        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);
        }