Пример #1
0
 public void OpenDialog(ref OpenFileDialog FileDialog, ref string Path, ref Speached speached, ref PdfViewer pdfViewer, ref string[] book)
 {
     try
     {
         if (FileDialog.ShowDialog() == DialogResult.OK)
         {
             Path = FileDialog.FileName;
             book = speached.TextFromPdf(Path);
             pdfViewer.Document = PdfDocument.Load(Path);
         }
     }
     catch
     {
         MessageBox.Show("Выберите сначало книгу");
     }
 }