|
@@ -18,6 +18,7 @@ using System.Windows.Media;
|
|
using System.Windows.Media.Imaging;
|
|
using System.Windows.Media.Imaging;
|
|
using System.Windows.Navigation;
|
|
using System.Windows.Navigation;
|
|
using System.Windows.Shapes;
|
|
using System.Windows.Shapes;
|
|
|
|
+using Compdfkit_Tools.DigitalSignature.SignatureStatusBarControl;
|
|
|
|
|
|
namespace Compdfkit_Tools.PDFControl
|
|
namespace Compdfkit_Tools.PDFControl
|
|
{
|
|
{
|
|
@@ -25,6 +26,7 @@ namespace Compdfkit_Tools.PDFControl
|
|
{
|
|
{
|
|
private bool isFirstLoad = true;
|
|
private bool isFirstLoad = true;
|
|
public PDFViewControl PDFViewControl = new PDFViewControl();
|
|
public PDFViewControl PDFViewControl = new PDFViewControl();
|
|
|
|
+ public SignatureStatusBarControl SignatureStatusBarControl = new SignatureStatusBarControl();
|
|
private bool _isActive = false;
|
|
private bool _isActive = false;
|
|
public event EventHandler<bool> OnCanSaveChanged;
|
|
public event EventHandler<bool> OnCanSaveChanged;
|
|
|
|
|
|
@@ -105,7 +107,7 @@ namespace Compdfkit_Tools.PDFControl
|
|
DigitalSignatureBarControl.DigitalSignatureActionChanged += DigitalSignatureBarControl_DigitalSignatureActionChanged;
|
|
DigitalSignatureBarControl.DigitalSignatureActionChanged += DigitalSignatureBarControl_DigitalSignatureActionChanged;
|
|
|
|
|
|
PDFViewControl.PDFView.WidgetClickHandler -= PDFView_WidgetClickHandler;
|
|
PDFViewControl.PDFView.WidgetClickHandler -= PDFView_WidgetClickHandler;
|
|
- PDFViewControl.PDFView.WidgetClickHandler += PDFView_WidgetClickHandler; ;
|
|
|
|
|
|
+ PDFViewControl.PDFView.WidgetClickHandler += PDFView_WidgetClickHandler;
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
@@ -161,6 +163,8 @@ namespace Compdfkit_Tools.PDFControl
|
|
PDFViewControl.PDFView.UndoManager.PropertyChanged -= UndoManager_PropertyChanged;
|
|
PDFViewControl.PDFView.UndoManager.PropertyChanged -= UndoManager_PropertyChanged;
|
|
PDFViewControl.PDFView.UndoManager.PropertyChanged += UndoManager_PropertyChanged;
|
|
PDFViewControl.PDFView.UndoManager.PropertyChanged += UndoManager_PropertyChanged;
|
|
PDFViewControl.PDFView.SetFormFieldHighlight(true);
|
|
PDFViewControl.PDFView.SetFormFieldHighlight(true);
|
|
|
|
+ SignatureBorder.Child = SignatureStatusBarControl;
|
|
|
|
+ SignatureStatusBarControl.Status = SignatureStatusBarControl.SignatureStatus.Invalid;
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|