예제 #1
0
        //主界面点击到达stuMainHomework界面的点击事件
        private void btnStuMainHomework_Click(object sender, RoutedEventArgs e)
        {
            Button          mf  = (Button)sender;
            StuMainHomework smh = new StuMainHomework(account, name, (String)mf.Tag, pngfile); //调用构造函数进行界面创建,真实课堂号

            smh.pngfile = this.pngfile;                                                        //给下一个界面头像传值
            smh.Show();                                                                        //下一个界面的展示
            this.Visibility = Visibility.Hidden;                                               //上一个界面的隐藏
        }
예제 #2
0
 private void btnReturn_Click(object sender, RoutedEventArgs e)
 {
     if (true)//里面是验证函数
     {
         // 打开子窗体
         StuMainHomework smh = new StuMainHomework(account, name, classId, pngfile);
         smh.pngfile = this.pngfile;
         smh.Show();
         // 隐藏自己(父窗体)
         this.Visibility = System.Windows.Visibility.Hidden;
     }
 }