示例#1
0
        private void btn_Lecturer_Address_Confirm_Click(object sender, EventArgs e)
        {
            if (txtB_Address_New.Text.Length > 0 || Check_Letters_And_Numbers_Only(txtB_Address_New.Text))
            {
                if (lecturer != null)
                {
                    lecDB.Update_Address(txtB_Address_New.Text, lecturer.getID());
                }
                else if (tutor != null)
                {
                    tutDB.Update_Address(txtB_Address_New.Text, tutor.getID());
                }
                else if (student != null)
                {
                    stuDB.Update_Address(txtB_Address_New.Text, student.getID());
                }
                else if (secretary != null)
                {
                    secDB.Update_Address(txtB_Address_New.Text, secretary.getID());
                }
                btn_Address_Cancell.PerformClick();
            }

            else
            {
                MessageBox.Show("כתובת בלתי חוקית");
            }
        }
示例#2
0
 public string Get_ID()
 {
     if (student != null)
     {
         return(student.getID());
     }
     else if (professor != null)
     {
         return(professor.getID());
     }
     else if (doctor != null)
     {
         return(doctor.getID());
     }
     else if (junior != null)
     {
         return(junior.getID());
     }
     else if (tutor != null)
     {
         return(tutor.getID());
     }
     else if (secretary != null)
     {
         return(secretary.getID());
     }
     else if (deptManager != null)
     {
         return(deptManager.getID());
     }
     else
     {
         return("Can't get the users ID.");
     }
 }
示例#3
0
        private void b_confirm_Click(object sender, EventArgs e)
        {
            string option_selected = lb_options.Text;

            switch (option_selected)
            {
            case "הוספת הרצאה":
                this.Hide();
                new OpenCourse("Lecture").ShowDialog();
                this.Show();
                break;

            case "הוספת תרגול":
                this.Hide();
                new OpenCourse("Tutore").ShowDialog();
                this.Show();
                break;

            case "הוספת סטודנט":
                this.Hide();
                new addStudent().ShowDialog();
                this.Show();
                break;

            case "הוספת מרצה":
                this.Hide();
                new addLacturer().ShowDialog();
                this.Show();
                break;

            case "הוספת מתרגל":
                this.Hide();
                new addTutor().ShowDialog();
                this.Show();
                break;

            case "הוספת מזכירה":
                this.Hide();
                new addSecretary().ShowDialog();
                this.Show();
                break;

            case "הוספת מבחן ללוח בחינות":
                this.Hide();
                new SetDateForTest().ShowDialog();
                this.Show();
                break;

            case "קביעת מועד מיוחד למבחן":
                this.Hide();
                new AddSpecialDateExtraExam().ShowDialog();
                this.Show();
                break;

            case "שיבוץ סטודנטים למבחן":
                this.Hide();
                new AssignmentStudentToTest().ShowDialog();
                this.Show();
                break;

            case "צפייה במערכת":
                this.Hide();
                new viewShSec(l_name.Text).ShowDialog();     ////full name
                this.Show();
                break;

            case "צפייה במכסת שעות נוכחית":
                this.Hide();
                new DisplayAmountHoursSecrt_Depar().ShowDialog();
                this.Show();
                break;

            case "צפייה ברשימת סטודנטים":
                this.Hide();
                new Students_List_S_DM().ShowDialog();
                this.Show();
                break;

            case "צפייה ברשימת קורסים לפי סמסטר":
                this.Hide();
                new DisplayCoursesBySemester().ShowDialog();
                this.Show();
                break;

            case "שינויים במערכת":
                this.Hide();
                new Requests_Check().ShowDialog();
                this.Show();
                break;

            case "ניהול קורס":
                this.Hide();
                new ManagementCourses().ShowDialog();
                this.Show();
                break;

            case "עדכון פרטים אישיים":
                this.Hide();
                new  Update_User_Info(this.secretary).ShowDialog();           ////////////
                this.Show();
                break;

            case "הודעות אישיות":
                this.Hide();
                new Readmess(secretary.getID()).ShowDialog();
                this.Show();
                break;

            case "שיבוץ סטודנטים לקורס":
                this.Hide();
                new  studentToCourse().ShowDialog();
                this.Show();
                break;

            default:
                MessageBox.Show("Please choose option!");
                break;
            }
        }