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