Example #1
0
 private void OpenPdfFile()
 {
     if (!isInit)
     {
         Cursor.Hide();
         Cursor.Position = new Point(800, 400);
         LoadingForm.ShowSplashScreen();
     }
     BibPdfViewer.Document?.Dispose();
     MainService.ExecuteLatexCommand(pathBibFile, "Bibtex", true);
     BibPdfViewer.Document = OpenDocument(pathBibFile + Constants.BibTexName + ".pdf");
     ReloadPdf             = false;
     if (!isInit)
     {
         LoadingForm.CloseForm();
         Cursor.Show();
     }
 }
Example #2
0
 private void OpenPdfFile()
 {
     if (!isInit)
     {
         Cursor.Hide();
         Cursor.Position = new Point(800, 400);
         LoadingForm.ShowSplashScreen();
     }
     DocPdfViewer.Document?.Dispose();
     MainService.ExecuteLatexCommand(pathTexFile, cls);
     DocPdfViewer.Document = OpenDocument(pathTexFile + cls + "_preview" + ".pdf");
     ReloadPdf             = false;
     if (!isInit)
     {
         LoadingForm.CloseForm();
         Cursor.Show();
     }
 }