Beispiel #1
0
 private void Set_Secretary(Secretary sec)
 {
     secretary       = sec;
     secDB           = new SecretarysDB();
     secreatarys_lst = new List <Secretary>();
     lbl_Update.Text = "עדכון מזכירה";
 }
Beispiel #2
0
        private void Load_Secretary_List()
        {
            int size = 0;

            lecDB = null;
            tutDB = null;
            stuDB = null;

            secDB           = new SecretarysDB();
            secreatarys_lst = secDB.Get_All_Secretary();
            size            = secreatarys_lst.Count();
            for (int i = 0; i < size; i++)
            {
                cbo_User_Select_ID.Items.Add(secreatarys_lst[i].getID());
            }
        }
Beispiel #3
0
        private void Load_Tutor_List()
        {
            int size = 0;

            lecDB = null;
            stuDB = null;
            secDB = null;

            tutDB      = new TutorsDB();
            tutors_lst = tutDB.Get_All_Tutors();
            size       = tutors_lst.Count();
            for (int i = 0; i < size; i++)
            {
                cbo_User_Select_ID.Items.Add(tutors_lst[i].getID());
            }
        }
Beispiel #4
0
        private void Load_Lecturer_List()
        {
            int size = 0;

            tutDB = null;
            stuDB = null;
            secDB = null;

            lecDB         = new LecturersDB();
            lecturers_lst = lecDB.Get_All_Lecturers();
            size          = lecturers_lst.Count();
            for (int i = 0; i < size; i++)
            {
                cbo_User_Select_ID.Items.Add(lecturers_lst[i].getID());
            }
        }
Beispiel #5
0
        private void btn_Lecturer_Main_Back_Click(object sender, EventArgs e)
        {
            if (lecturer != null)
            {
                lecturer = null;
                lecDB    = null;
            }
            else if (tutor != null)
            {
                tutor = null;
                tutDB = null;
            }
            else if (student != null)
            {
                student = null;
                stuDB   = null;
            }
            else if (secretary != null && admin == false)
            {
                secretary = null;
                secDB     = null;
            }

            if (admin)
            {
                pnl_User_Select.Visible = true;
                txtB_User_Select_LName.Clear();
                txtB_User_Select_LName.ResetText();
                txtB_User_Select_PName.Clear();
                txtB_User_Select_PName.ResetText();
                cbo_User_Select_ID.ResetText();
                cbo_User_Select_ID.Items.Clear();

                Load_Users();
            }
        }