Example #1
0
    public static bool check_teacher_connection_status()
    {
        bool            boolean        = false;
        current_teacher CurrentTeacher = new current_teacher("admin", "admin");
        database        _database_     = new database();

        _database_.open_connection();
        boolean = CurrentTeacher.function_teacher_connection_status(_database_);
        _database_.close_connection();
        return(boolean);
    }
Example #2
0
    public static bool check_is_teacher(string login, string password)
    {
        bool            boolean        = false;
        current_teacher CurrentTeacher = new current_teacher(login, password);
        database        _database_     = new database();

        _database_.open_connection();
        boolean = CurrentTeacher.function_registration_check(_database_);
        _database_.close_connection();
        return(boolean);
    }