Esempio n. 1
0
        private void button_Click(object sender, RoutedEventArgs e)
        {
            string t = comboBox.Text;

            if (t == "学生")
            {
                StudentMainWebsite w = new StudentMainWebsite();
                w.Show();
                this.Close();
            }
            if (t == "家长")
            {
                ParentsMainWebsite w = new ParentsMainWebsite();
                w.Show();
                this.Close();
            }
            if (t == "任课老师")
            {
                TeacherMainWebsite w = new TeacherMainWebsite();
                w.Show();
                this.Close();
            }

            if (t == "班主任")
            {
                TeacherMainWebsite w = new TeacherMainWebsite();
                w.Show();
                this.Close();
            }
        }
        private void button1_Click(object sender, RoutedEventArgs e)
        {
            ParentsMainWebsite w = new ParentsMainWebsite();

            w.Show();
            this.Close();
        }