示例#1
0
        private void btnExportToPdf_Click(object sender, RoutedEventArgs e)
        {
            if (selected_Questionaire == null)
            {
                MessageBox.Show("Select Questionaire First", "Confirmation");
                return;
            }

            Export_to_Pdf wpdf = new Export_to_Pdf(selected_Questionaire);
            wpdf.Visibility = Visibility.Visible;

               // NavigationService nav = NavigationService.GetNavigationService(this);
               // nav.Navigate(new Uri("Export_to_Pdf.xaml?id="+selected_Questionaire.Id, UriKind.RelativeOrAbsolute));
        }
示例#2
0
        private void export_Click(object sender, RoutedEventArgs e)
        {
            if (selected_Questionaire == null)
            {
                MessageBox.Show("Select Questionaire First", "Confirmation");
                return;
            }

            Export_to_Pdf wpdf = new Export_to_Pdf(selected_Questionaire);
            wpdf.Visibility = Visibility.Visible;
        }
示例#3
0
        private void Login_exit_button_Click(object sender, RoutedEventArgs e)
        {
            var oldWindow = Application.Current.MainWindow;

            Export_to_Pdf wpdf = new Export_to_Pdf();
            wpdf.Visibility = Visibility.Visible;
            oldWindow.Close();
        }