Пример #1
0
 public void Speak(ref Speached speached, ref string[] book)
 {
     try
     {
         for (int i = 1; i <= book.Length - 1; i++)
         {
             speached.Speak(book[i].ToString());
         }
     }
     catch
     {
         MessageBox.Show("Выберите сначало книгу");
     }
 }
Пример #2
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("Выберите сначало книгу");
     }
 }
Пример #3
0
 public Form1()
 {
     InitializeComponent();
     speached    = new Speached();
     comfortable = new Comfortable();
 }