Example #1
0
        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);
        }
Example #2
0
 public CopyCommand(PdfViewerWPF viewer)
 {
     this.viewer = viewer;
 }