private void btnAnswerQuestion_Click(object sender, RoutedEventArgs e)
        {
            // 打开子窗体
            AnswerQuestion newAnswerQuestion = new AnswerQuestion();

            newAnswerQuestion.Show();
            // 隐藏自己(父窗体)
            this.Visibility = System.Windows.Visibility.Hidden;
        }
Esempio n. 2
0
        //查看答疑的按钮,点击进入答疑区
        private void btnAnswerQuestion_Click(object sender, RoutedEventArgs e)
        {
            AnswerQuestion newAnswerQuestion = new AnswerQuestion(lbNotTitle.Content.ToString(), tbTeacherInfo1.Text, notId); //这里有问题

            loadQuestionAndAnswer(notId, newAnswerQuestion);                                                                  //加载疑问和回答
            newAnswerQuestion.btnSubmitQuestion.Visibility = Visibility.Hidden;
            newAnswerQuestion.Show();

            // this.Visibility = System.Windows.Visibility.Hidden;
        }