Esempio n. 1
0
        //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;
        }
Esempio n. 2
0
 public void setController()
 {
     this.controller = mainForm.getController();
 }