public TeacherController(MasterController masterController) : base(masterController) { Model = new TeacherModel(); View = new TeacherView(this); x = null; }
public ExamOverviewTeacherController(MasterController masterController) : base(masterController) { Model = new ExamOverviewTeacherModel(); View = new ExamOverviewTeacherView(this); View.clnExams.CalendarItemClick += ClnExams_CalendarItemClick; }
public QuestionnaireDetailController(MasterController masterController) : base(masterController) { Model = new QuestionnaireDetailModel(); View = new QuestionnaireDetailView(this); Disabled = false; }
public LoginController(MasterController masterController) : base(masterController) { // Set login model, View wordt in de Dialog doorgegeven Model = new LoginModel(); // BackgroundWorker = Thread BackgroundWorker = new BackgroundWorker(); // Zodat we aanroepen van de worker thread kunnen opvangen in de main thread BackgroundWorker.WorkerReportsProgress = true; // DoWork is de worker thread, dus onafhankelijk van de main thread BackgroundWorker.DoWork += BackgroundWorker_DoWork; // Dit wordt uitgevoerd op de main thread, met de ontvangen data van de worker thread BackgroundWorker.ProgressChanged += BackgroundWorker_ProgressChanged; }
static void Main() { // Zorgt ervoor dat de applicatie werkt op HiDPI-schermen if (Environment.OSVersion.Version.Major >= 6) SetProcessDPIAware(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); MasterController MasterController = new MasterController(); //Aanmaken van MasterController, het hoofdscherm // Login dialog laten zien en wachten op resultaat. LoginView LoginView = new LoginView((LoginController)MasterController.GetController(typeof(LoginController))); if (LoginView.ShowDialog() == DialogResult.OK) //Als login dialog OK returnt dan MasterController uitvoeren { //MasterController runnen als hoofdapplicaties Application.Run(MasterController); } else { //Als login dialog iets anders dan OK returnt dan sluit hij de applicatie af, dus o.a. bij sluiten Application.Exit(); } }
public EditExamController(MasterController masterController) : base(masterController) { Model = new EditExamModel(); View = new EditExamView(this); }
public TeacherHomeController(MasterController masterController) : base(masterController) { Model = new TeacherHomeModel(); View = new TeacherHomeView(this); }
public Controller(MasterController masterController) { MasterController = masterController; }
public StudentController(MasterController masterController) : base(masterController) { Model = new QuestionnaireOverviewModel(); View = new StudentView(this); }
public ViewResultsController(MasterController masterController) : base(masterController) { Model = new ViewResultsModel(); View = new ViewResultsView(this); }