コード例 #1
0
        private static void OpenForm(LoginDB Info)
        {
            switch (Info.FormToOpen)
            {
            case Klant_main klant:
                Klant_main k = new Klant_main();
                k.Show();
                break;

            case Chauffeurs chaufeur:
                Chauffeurs c = new Chauffeurs();
                c.Show();
                break;

            case Planners planner:
                Planners p = new Planners();
                p.Show();
                break;

            case Managers manager:
                Managers m = new Managers();
                m.Show();
                break;
            }
        }
コード例 #2
0
        private static void LoadTables()
        {
            //clear list first
            DB_Info.Clear();

            //new table
            Klant_main klant_frm = new Klant_main();

            DB_Info.Add(new LoginDB("klanten", klant_frm, "klant_id", "email", "wachtwoord"));

            Chauffeurs chauffeur_frm = new Chauffeurs();

            DB_Info.Add(new LoginDB("chauffeurs", chauffeur_frm, "chauffeur_ID", "inlognaam", "wachtwoord"));

            Planners Planners_frm = new Planners();

            DB_Info.Add(new LoginDB("planners", Planners_frm, "planner_ID", "inlognaam", "wachtwoord"));

            Managers Mannagers_frm = new Managers();

            DB_Info.Add(new LoginDB("managers", Mannagers_frm, "manager_ID", "inlognaam", "wachtwoord"));
        }