コード例 #1
0
 private void ExaminationReport_Click(object sender, RoutedEventArgs e)
 {
     this.Hide();
     var selectedUser = this.userGrid.SelectedItem as XmlElement;
     var name=selectedUser.GetAttribute("Name");
     // View Examination Report
     ExaminationReportPage examinationReportPage = new ExaminationReportPage(this.userGrid.SelectedItem);
     //examinationReportPage.closeWindowEvent += new CloseWindowHandler(ShowMainWindow);
     examinationReportPage.Owner = this;
     examinationReportPage.ShowDialog();            
 }
コード例 #2
0
ファイル: UserList.xaml.cs プロジェクト: mydipcom/MEIKReport
 private void ExaminationReport_Click(object sender, RoutedEventArgs e)
 {
     //this.Visibility = Visibility.Hidden;
     var selectedUser = this.CodeListBox.SelectedItem as Person;
     
     //var name=selectedUser.GetAttribute("Name");
     // View Examination Report
     examinationReportPage = new ExaminationReportPage(selectedUser);
     //examinationReportPage.closeWindowEvent += new CloseWindowHandler(ShowMainWindow);
     examinationReportPage.Owner = this;
     examinationReportPage.Show();     
 }