Example #1
0
 private void LoadFile(string Filename, int Page, bool NewSumatraInstance)
 {
     if (fw != null)
     {
         fw.EnableRaisingEvents = false;
         fw.Dispose();
     }
     SumatraPDFControl.LoadFile(Filename, Page, NewSumatraInstance);
     fw = new System.IO.FileSystemWatcher(System.IO.Path.GetDirectoryName(Filename))
     {
         NotifyFilter          = System.IO.NotifyFilters.LastWrite,
         Filter                = System.IO.Path.GetFileName(Filename),
         IncludeSubdirectories = true
     };
     fw.Changed            += Fw_Changed;
     fw.EnableRaisingEvents = true;
 }
Example #2
0
 private void toolStripButton7_Click(object sender, EventArgs e)
 {
     SumatraPDFControl.TextSearchNext(true);
 }
Example #3
0
 private void toolStripButton5_Click(object sender, EventArgs e)
 {
     SumatraPDFControl.TextSearch(toolText.Text, true);
 }
Example #4
0
 private void toolStripCopySelection_Click(object sender, EventArgs e)
 {
     SumatraPDFControl.CopySelection();
 }
Example #5
0
 private void btnReload_Click(object sender, EventArgs e)
 {
     SumatraPDFControl.ReloadCurrentFile();
 }
Example #6
0
 private void buttonGotoLast_Click(object sender, EventArgs e)
 {
     SumatraPDFControl.GoToLastPage();
 }
Example #7
0
 public void OpenPrintDialog()
 {
     SumatraPDFControl.OpenPrintDialog();
 }
Example #8
0
 public void CopySelection()
 {
     SumatraPDFControl.CopySelection();
 }
Example #9
0
 public void SelectAll()
 {
     SumatraPDFControl.SelectAll();
 }
Example #10
0
 private void toolStripSelectAllText_Click(object sender, EventArgs e)
 {
     SumatraPDFControl.SelectAll();
 }
Example #11
0
 private void toolOpenPrintDialog_Click(object sender, EventArgs e)
 {
     SumatraPDFControl.OpenPrintDialog();
 }
Example #12
0
 private void toolSetRotation_Click(object sender, EventArgs e)
 {
     SumatraPDFControl.RotateBy((RotationEnum)int.Parse(toolText.Text));
 }
Example #13
0
 private void Fw_Changed(object sender, System.IO.FileSystemEventArgs e)
 {
     SumatraPDFControl.ReloadCurrentFile();
 }