|
@@ -507,7 +507,9 @@ namespace PDF_Master.ViewModels.Tools
|
|
|
{
|
|
|
PropertyPanel.IsFreeHandSelected = true;
|
|
|
}
|
|
|
- GetSelectedAnnots(e);
|
|
|
+ if (viewContentViewModel.IsPropertyOpen)
|
|
|
+ GetSelectedAnnots(e);
|
|
|
+
|
|
|
SelectedSignature(e.AnnotItemsList);
|
|
|
|
|
|
if (Settings.Default.AppProperties.InitialVIew.AutoExpandProperty
|
|
@@ -515,12 +517,12 @@ namespace PDF_Master.ViewModels.Tools
|
|
|
&& annot.EventType != AnnotArgsType.AnnotLink)
|
|
|
{
|
|
|
var signAnnot = viewContentViewModel.AnnotSignatures.FirstOrDefault(temp => temp.Item1 == annot.PageIndex && temp.Item2 == annot.AnnotIndex);
|
|
|
- if (signAnnot == null)
|
|
|
+ if (signAnnot == null && viewContentViewModel.IsPropertyOpen)
|
|
|
{
|
|
|
ShowPropertyPanel(true);
|
|
|
}
|
|
|
}
|
|
|
- if (StrAnnotToolChecked == "Signature")
|
|
|
+ else if (StrAnnotToolChecked == "Signature")
|
|
|
{
|
|
|
GetSignature();
|
|
|
}
|
|
@@ -540,7 +542,6 @@ namespace PDF_Master.ViewModels.Tools
|
|
|
if (IsNoSelectMenu)
|
|
|
{
|
|
|
return;
|
|
|
-
|
|
|
}
|
|
|
PropertyPanel.annot = null;
|
|
|
PropertyPanel.AnnotEvents = null;
|
|
@@ -1120,9 +1121,10 @@ namespace PDF_Master.ViewModels.Tools
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- if (annot.EventType == AnnotArgsType.AnnotSquare || annot.EventType == AnnotArgsType.AnnotCircle ||
|
|
|
- annot.EventType == AnnotArgsType.AnnotLine || annot.EventType == AnnotArgsType.AnnotStamp ||
|
|
|
- annot.EventType==AnnotArgsType.AnnotLink
|
|
|
+ if (
|
|
|
+ annot.EventType == AnnotArgsType.AnnotSquare || annot.EventType == AnnotArgsType.AnnotCircle ||
|
|
|
+ annot.EventType == AnnotArgsType.AnnotLine || annot.EventType == AnnotArgsType.AnnotStamp ||
|
|
|
+ annot.EventType == AnnotArgsType.AnnotLink
|
|
|
/*|| annot.EventType == AnnotArgsType.AnnotSticky ||annot.EventType == AnnotArgsType.AnnotFreeText || annot.EventType == AnnotArgsType.AnnotFreehand*/)
|
|
|
{
|
|
|
if (selectAnnotDicts.ContainsKey(editEvent.PageIndex) == false)
|