private bool TryObtainValidLicense(PdfLicenseInvalidException ex) { InputDialog inputDialog = new InputDialog(ex.Message + " Please insert a valid license:"); this.Focus(); if (inputDialog.ShowDialog() != true) { return(false); } try { PdfViewerWPF.SetLicenseKey(inputDialog.Answer); } catch (PdfLicenseInvalidException e) { TryObtainValidLicense(e); } return(true); }
public CopyCommand(PdfViewerWPF viewer) { this.viewer = viewer; }