Beispiel #1
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.");
     }
 }
Beispiel #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            string option_selected = lb_options.Text;

            switch (option_selected)
            {
            case "צפייה במערכת":
                this.Hide();
                new viewShSec(department_manager.getFirstName()).ShowDialog();                  ////////////////////
                this.Show();
                break;

            case "הוספת קורס חדש - קביעת פרטי קורס":
                this.Hide();
                new DeterminingCourseDetails().ShowDialog();
                this.Show();
                break;

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


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

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

            case "חלוקת שנת לימודים לסמסטרים ותקופות מבחנים":               ///
                this.Hide();
                new AcademicYear().ShowDialog();
                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 SemesterMinimalAverage().ShowDialog();
                this.Show();
                break;

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

            case "אישור מועד מיוחד":
                this.Hide();
                new ConfirmSpecialExam().ShowDialog();
                this.Show();
                break;

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

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