Пример #1
0
        private void BtnStuManage_Click(object sender, RoutedEventArgs e)
        {
            StudentManagement StudentManagement = new StudentManagement();

            btnStuManage.Background    = new SolidColorBrush(Color.FromRgb(104, 189, 234));
            btnTeaManage.Background    = new SolidColorBrush(Color.FromRgb(2, 136, 209));
            btnClassManage.Background  = new SolidColorBrush(Color.FromRgb(2, 136, 209));
            btnNoticeManage.Background = new SolidColorBrush(Color.FromRgb(2, 136, 209));
            content.Content            = new Frame()
            {
                Content = StudentManagement
            };
        }
Пример #2
0
        public ReviseStudent(String snum, String sna, String sex, String stuclass, String pwd, StudentManagement s)
        {
            InitializeComponent();
            this.MaxHeight = SystemParameters.MaximizedPrimaryScreenHeight;
            this.snum      = snum;
            this.sna       = sna;
            this.sex       = sex;
            this.stuClass  = stuclass;
            this.pwd       = pwd;
            this.
            txtStuNum.Text  = snum;
            txtStuName.Text = sna;
            if (sex == "男")
            {
                radiobtnStuMale.IsChecked = true;
            }
            else if (sex == "女")
            {
                radiobtnStuMale1.IsChecked = true;
            }

            txtStuClass.Text    = stuclass;
            txtStuPassword.Text = pwd;
        }