|
@@ -23,6 +23,12 @@ namespace Compdfkit_Tools.PDFControl
|
|
|
private AddCustomCertificationControl addCustomCertificationControl = null;
|
|
|
private AddExistedCertificationControl addExistedCertificationControl = null;
|
|
|
private SaveCerficateControl saveCerficateControl = null;
|
|
|
+
|
|
|
+ private string addCertificationControlTitle = "Add Digital Signatures";
|
|
|
+ private string addExistedCertificationControlTitle = "Add A Digital ID";
|
|
|
+ private string addCustomCertificationControlTitle = "Customize the Signature";
|
|
|
+ private string saveCerficateControlTitle = "Save the Self-Signed Digital ID to A File";
|
|
|
+
|
|
|
public event EventHandler<CertificateAccess> FillSignatureEvent;
|
|
|
|
|
|
|
|
@@ -31,6 +37,7 @@ namespace Compdfkit_Tools.PDFControl
|
|
|
InitializeComponent();
|
|
|
addCertificationControl = new AddCertificationControl();
|
|
|
BodyBd.Child = addCertificationControl;
|
|
|
+ Title = addCertificationControlTitle;
|
|
|
}
|
|
|
|
|
|
private void Window_Loaded(object sender, RoutedEventArgs e)
|
|
@@ -47,6 +54,7 @@ namespace Compdfkit_Tools.PDFControl
|
|
|
{
|
|
|
addExistedCertificationControl = new AddExistedCertificationControl();
|
|
|
BodyBd.Child = addExistedCertificationControl;
|
|
|
+ Title = addExistedCertificationControlTitle;
|
|
|
this.Height = addExistedCertificationControl.Height + 35;
|
|
|
this.Width = addExistedCertificationControl.Width + 20;
|
|
|
|
|
@@ -60,6 +68,7 @@ namespace Compdfkit_Tools.PDFControl
|
|
|
{
|
|
|
addCustomCertificationControl = new AddCustomCertificationControl();
|
|
|
BodyBd.Child = addCustomCertificationControl;
|
|
|
+ Title = addCustomCertificationControlTitle;
|
|
|
this.Height = addCustomCertificationControl.Height + 35;
|
|
|
this.Width = addCustomCertificationControl.Width + 20;
|
|
|
|
|
@@ -74,6 +83,8 @@ namespace Compdfkit_Tools.PDFControl
|
|
|
saveCerficateControl = new SaveCerficateControl();
|
|
|
saveCerficateControl.CertificateInfo = addCustomCertificationControl.certificateInfo;
|
|
|
BodyBd.Child = saveCerficateControl;
|
|
|
+ Title = saveCerficateControlTitle;
|
|
|
+
|
|
|
this.Height = saveCerficateControl.Height + 20;
|
|
|
this.Width = saveCerficateControl.Width + 20;
|
|
|
saveCerficateControl.FillSignatureEvent -= FillSignature;
|
|
@@ -93,6 +104,7 @@ namespace Compdfkit_Tools.PDFControl
|
|
|
{
|
|
|
addCertificationControl = new AddCertificationControl();
|
|
|
BodyBd.Child = addCertificationControl;
|
|
|
+ Title = addCertificationControlTitle;
|
|
|
this.Height = addCertificationControl.Height + 35;
|
|
|
this.Width = addCertificationControl.Width + 20;
|
|
|
addCertificationControl.ContinueEvent -= ContinueEvent;
|
|
@@ -102,6 +114,7 @@ namespace Compdfkit_Tools.PDFControl
|
|
|
private void CancelSaveEvent(object sender, EventArgs e)
|
|
|
{
|
|
|
BodyBd.Child = addCustomCertificationControl;
|
|
|
+ Title = addCustomCertificationControlTitle;
|
|
|
this.Height = addCustomCertificationControl.Height + 35;
|
|
|
this.Width = addCustomCertificationControl.Width + 20;
|
|
|
addCustomCertificationControl.ContinueEvent -= ContinueEvent;
|