|
@@ -210,21 +210,23 @@ namespace PDFViewer
|
|
if (baseWidget != null)
|
|
if (baseWidget != null)
|
|
{
|
|
{
|
|
AnnotParam annotParam = ParamConverter.CPDFDataConverterToAnnotParam(
|
|
AnnotParam annotParam = ParamConverter.CPDFDataConverterToAnnotParam(
|
|
-viewControl.PDFViewTool.GetCPDFViewer().GetDocument(),
|
|
|
|
-baseWidget.GetAnnotData().PageIndex,
|
|
|
|
-baseWidget.GetAnnotData().Annot);
|
|
|
|
|
|
+ viewControl.PDFViewTool.GetCPDFViewer().GetDocument(),
|
|
|
|
+ baseWidget.GetAnnotData().PageIndex,
|
|
|
|
+ baseWidget.GetAnnotData().Annot);
|
|
if ((annotParam as WidgetParm).WidgetType == C_WIDGET_TYPE.WIDGET_SIGNATUREFIELDS)
|
|
if ((annotParam as WidgetParm).WidgetType == C_WIDGET_TYPE.WIDGET_SIGNATUREFIELDS)
|
|
{
|
|
{
|
|
if (currentMode == "Annotation")
|
|
if (currentMode == "Annotation")
|
|
{
|
|
{
|
|
CPDFSignatureUI signatureProperty = new CPDFSignatureUI();
|
|
CPDFSignatureUI signatureProperty = new CPDFSignatureUI();
|
|
signatureProperty.SetFormProperty(annotParam, viewControl, baseWidget.GetAnnotData().Annot);
|
|
signatureProperty.SetFormProperty(annotParam, viewControl, baseWidget.GetAnnotData().Annot);
|
|
|
|
+ panelState.RightPanel = PanelState.RightPanelState.PropertyPanel;
|
|
annotationControl.SetPropertyContainer(signatureProperty);
|
|
annotationControl.SetPropertyContainer(signatureProperty);
|
|
}
|
|
}
|
|
else if (currentMode == "Viewer")
|
|
else if (currentMode == "Viewer")
|
|
{
|
|
{
|
|
CPDFSignatureUI signatureProperty = new CPDFSignatureUI();
|
|
CPDFSignatureUI signatureProperty = new CPDFSignatureUI();
|
|
signatureProperty.SetFormProperty(annotParam, viewControl, baseWidget.GetAnnotData().Annot);
|
|
signatureProperty.SetFormProperty(annotParam, viewControl, baseWidget.GetAnnotData().Annot);
|
|
|
|
+ panelState.RightPanel = PanelState.RightPanelState.PropertyPanel;
|
|
regularViewerControl.SetPropertyContainer(signatureProperty);
|
|
regularViewerControl.SetPropertyContainer(signatureProperty);
|
|
}
|
|
}
|
|
}
|
|
}
|