public void LoadPDF(string filename) { currentPDF = filename; if (pdfViewer != null) { pdfViewer.LoadPDF(filename); } }
public PreviewWindow() { InitializeComponent(); InitUI(); this.args = (Application.Current as App).args; if (this.args != null && this.args.Length > 0) { currentFileName = this.args[0]; pdfReader.LoadPDF(currentFileName); pdfReader.SetZoomLevel(1); } }