public void createNewTutorialView(object sender, object e) { NewToturialView newTutorial = new NewToturialView(); NewToturialPresenter tutorialPresenter = new NewToturialPresenter(newTutorial, this.dataio); tutorialPresenter.getTutorialView().ShowDialog(); }
public NewToturialPresenter(NewToturialView TutorialView, DataIO dataio) { this.newTutorialView = TutorialView; this.dataIO = dataio; //call combo box configureation methods to configure the selections on those combo boxes this.configureTeacherCombo(); this.configureSubjectCombo(); this.configureSemesterCombo(); this.configureYearCombo(); newTutorialView.CreateTutorialBtn.Click += this.createNewTutorial; newTutorialView.Cancel_tutorialBtn.Click += this.cancelView; }