示例#1
0
 private void SummaryReport_Click(object sender, RoutedEventArgs e)
 {
     this.Hide();
     var selectedUser = userGrid.SelectedItem as XmlElement;
     var name = selectedUser.GetAttribute("Name");
     SummaryReportPage summaryReportPage = new SummaryReportPage(this.userGrid.SelectedItem);
     //summaryReportPage.closeWindowEvent += new CloseWindowHandler(ShowMainWindow);
     summaryReportPage.Owner = this;
     summaryReportPage.ShowDialog();
 }
示例#2
0
 private void SummaryReport_Click(object sender, RoutedEventArgs e)
 {
     //this.Visibility = Visibility.Hidden;
     var selectedUser = this.CodeListBox.SelectedItem as Person;
     //var name = selectedUser.GetAttribute("Name");
     SummaryReportPage summaryReportPage = new SummaryReportPage(selectedUser);
     ////summaryReportPage.closeWindowEvent += new CloseWindowHandler(ShowMainWindow);
     summaryReportPage.Owner = this;
     summaryReportPage.Show();
 }