コード例 #1
0
        //返回按钮,返回教师的所有作业公告总览界面,就是BriefView
        private void btnReturn_Click(object sender, RoutedEventArgs e)
        {
            BreifView newBreifView = new BreifView(tbClassInfo.Text.ToString(), tbClassInfo1.Text.ToString(), tbTeacherInfo.Text.ToString(), tbTeacherInfo1.Text.ToString(), this.pngfile);

            newBreifView.pngfile = this.pngfile;
            newBreifView.Show();
            this.Visibility = System.Windows.Visibility.Hidden;
        }
コード例 #2
0
        //返回按钮事件
        private void btnReturn_Click(object sender, RoutedEventArgs e)
        {
            BreifView newBreifView = new BreifView(lbClassSpecId.Text, labelcClassName.Content.ToString(), tbTeacherSpecId.Text, tbName.Text, this.pngfile);

            newBreifView.pngfile = this.pngfile;
            newBreifView.Show();
            // 隐藏自己(父窗体)
            this.Visibility = System.Windows.Visibility.Hidden;
        }
コード例 #3
0
        private void btnReturn_Click(object sender, RoutedEventArgs e)
        {
            // 打开子窗体
            BreifView newBriefView = new BreifView();

            newBriefView.Show();
            // 隐藏自己(父窗体)
            this.Visibility = System.Windows.Visibility.Hidden;
        }
コード例 #4
0
        private void btnEnterClass_Click(object sender, EventArgs e)
        {
            //记录点击的是哪个控件
            TeachClass clickTeachClass = (TeachClass)sender;
            //动态加载BreifView界面,需要知道当前课程名,课程id,老师id,老师姓名
            BreifView newBreif = new BreifView(clickTeachClass.labelClassId1.Content.ToString(), clickTeachClass.labelClassName1.Content.ToString(), tbTeacherInfo.Text, tbTeacherInfo1.Text, this.pngfile);

            newBreif.pngfile = this.pngfile;
            newBreif.Show();
            this.Visibility = System.Windows.Visibility.Hidden;
        }