private void btnOpenFile_Click(object sender, RoutedEventArgs e) { if (CheckBoxGDPR.IsChecked == true) { CheckBoxGDPR.IsEnabled = false; OpenFileDialog openFileDialog = new OpenFileDialog(); openFileDialog.Multiselect = true; openFileDialog.Filter = "PDF files (*.pdf)|*pdf"; if (openFileDialog.ShowDialog() == true) { foreach (string pathPDF in openFileDialog.FileNames) { string pdfText = Samo.readPDF(pathPDF); processingPDF(records.Position, pdfText, pathPDF); } } } else { MessageBox.Show("Pre pokračovanie musite súhlasiť s podmienkami."); } }