Ejemplo n.º 1
0
 private void Set_Tutor(Tutor tut)
 {
     tutor           = tut;
     tutDB           = new TutorsDB();
     tutors_lst      = new List <Tutor>();
     lbl_Update.Text = "עדכון מתגרל";
 }
Ejemplo n.º 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     pnl_Update_Main.Visible = false;
     pnl_User_Select.Visible = false;
     lecturer = null;
     tutor    = null;
     student  = null;
     lecDB    = null;
     tutDB    = null;
     stuDB    = null;
 }
Ejemplo n.º 3
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());
            }
        }
Ejemplo n.º 4
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());
            }
        }
Ejemplo n.º 5
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());
            }
        }
Ejemplo n.º 6
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();
            }
        }