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