コード例 #1
0
ファイル: QuestionForm.cs プロジェクト: 1337Steven1337/KBS2G3
        //Initializing controller & view
        public QuestionForm(int List_Id)
        {
            InitializeComponent();
            this.List_Id = List_Id;
            this.view = new StudentForm(this);
            this.controller = new StudentFormController(this);

            this.sendOpenQuestionBtn.Click += new System.EventHandler(controller.AnswerOpenQuestionSaveHandler);

            this.view.setController();
            view.initControlLocations();
            view.initWaitScreen();
            questionTimer.Interval = 100;
            questionTimer.Tick += Question_Timer;
        }
コード例 #2
0
ファイル: StudentForm.cs プロジェクト: 1337Steven1337/KBS2G3
 public void setController()
 {
     this.controller = mainForm.getController();
 }