Ejemplo n.º 1
0
 //返回上一界面
 private void btnReturn_Click(object sender, RoutedEventArgs e)
 {
     if (true)//里面是验证函数
     {
         // 打开子窗体
         StuDoHomework sdh = new StuDoHomework(account, name, notId, classId, pngfile, message);
         sdh.pngfile = this.pngfile;
         sdh.Show();
         // 隐藏自己(父窗体)
         this.Visibility = System.Windows.Visibility.Hidden;
     }
 }
Ejemplo n.º 2
0
 //返回上一界面
 private void btnComeback_Click(object sender, RoutedEventArgs e)
 {
     if (true)//里面是验证函数
     {
         // 打开子窗体
         //String account, String name, String notId, String classId
         StuDoHomework sdh = new StuDoHomework(account, name, notId, classSpecId, pngfile);
         sdh.pngfile = this.pngfile;
         sdh.Show();
         // 隐藏自己(父窗体)
         this.Visibility = System.Windows.Visibility.Hidden;
     }
 }
Ejemplo n.º 3
0
        //作业公告的按钮点击事件
        private void homeworkNote_Click(object sender, RoutedEventArgs e)
        {
            //记录生成的是哪个动态控件
            Button hnif = (Button)sender;

            String[] info = (String[])hnif.Tag;
            //跳转到查看作业公告界面,也就是doHomework界面
            //调用该界面的构造函数进行界面的初始化
            StuDoHomework sdh = new StuDoHomework(account, name, info[0], info[1], pngfile);

            sdh.pngfile = this.pngfile;          //给下一个界面头像传值
            sdh.Show();                          //下一个界面的显示
            this.Visibility = Visibility.Hidden; //上一个界面的隐藏
        }
Ejemplo n.º 4
0
        //打开具体的做作业界面的点击事件
        private void doHomework_Click(object sender, RoutedEventArgs e)
        {
            Button mh = (Button)sender;

            String[]      info = (String[])mh.Tag;
            StuDoHomework sdh  = new StuDoHomework(account, name, info[1], classId, pngfile, info[3]);//这里的classId是真实课堂号

            //String account, String name,String notId, String classId,String message
            sdh.Show();
            this.Visibility = Visibility.Hidden;
            //如果作业逾期了的话,就跳转之后进行弹窗提示
            if (info[3] == "已逾期")
            {
                MessageBox.Show("该作业已逾期,无法再进行作答");
            }
        }