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(); }
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(); }