Example #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            string option_selected = lb_options.Text;

            switch (option_selected)
            {
            case "צפייה במערכת":
                this.Hide();
                new viewShT(l_name.Text, tutor.getID()).ShowDialog();             ////////////
                this.Show();
                break;

            case "שינויים במערכת למתרגל":
                this.Hide();
                new Requests_Tutors(tutor.getUserName(), tutor.getPassword()).ShowDialog();            ////////////
                this.Show();
                break;

            case "העדפות מתרגל":
                this.Hide();
                new TutorPreferences(tutor.getID()).ShowDialog();                   ////////////////////
                this.Show();
                break;

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

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

            case "צפייה ברשימת סטודנטים לקורס":               ///
                this.Hide();
                new StudentsList_L_T(tutor.getFirstName() + " " + tutor.getLastName()).ShowDialog();
                this.Show();
                break;

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

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

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

                break;
            }
        }