示例#1
0
 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;
 }
示例#4
0
        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;
        }
示例#5
0
        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();
            }
        }
示例#6
0
 public EditExamController(MasterController masterController)
     : base(masterController)
 {
     Model = new EditExamModel();
     View = new EditExamView(this);
 }
示例#7
0
 public TeacherHomeController(MasterController masterController)
     : base(masterController)
 {
     Model = new TeacherHomeModel();
     View = new TeacherHomeView(this);
 }
示例#8
0
 public Controller(MasterController masterController)
 {
     MasterController = masterController;
 }
示例#9
0
 public StudentController(MasterController masterController)
     : base(masterController)
 {
     Model = new QuestionnaireOverviewModel();
     View = new StudentView(this);
 }
示例#10
0
 public ViewResultsController(MasterController masterController)
     : base(masterController)
 {
     Model = new ViewResultsModel();
     View = new ViewResultsView(this);
 }