|
@@ -9,6 +9,7 @@ using PDF_Master.CustomControl;
|
|
|
using PDF_Master.EventAggregators;
|
|
|
using PDF_Master.Helper;
|
|
|
using PDF_Master.Model;
|
|
|
+using PDF_Master.Model.AnnotPanel;
|
|
|
using PDF_Master.Model.BOTA;
|
|
|
using PDF_Master.Properties;
|
|
|
using PDF_Master.ViewModels.BOTA;
|
|
@@ -227,13 +228,18 @@ namespace PDF_Master.ViewModels.Tools
|
|
|
MyToolCheckedDoing(dictVar, tag);
|
|
|
FindAnnotTypeKey(tag, ref annotArgs);
|
|
|
|
|
|
- if (annotArgs != null)
|
|
|
+ if (annotArgs != null && tag != "Stamp")
|
|
|
{
|
|
|
|
|
|
annotArgs.Author = Settings.Default.AppProperties.Description.Author;
|
|
|
PDFViewer.SetMouseMode(MouseModes.AnnotCreate);
|
|
|
PDFViewer.SetToolParam(annotArgs);
|
|
|
}
|
|
|
+ else
|
|
|
+ {
|
|
|
+
|
|
|
+ PDFViewer.SetMouseMode(MouseModes.None);
|
|
|
+ }
|
|
|
if (PropertyPanel.IsSelectedTextAddLink)
|
|
|
{
|
|
|
PropertyPanel.IsSelectedTextAddLink = false;
|
|
@@ -286,8 +292,8 @@ namespace PDF_Master.ViewModels.Tools
|
|
|
if (BtnHandIsChecked)
|
|
|
BtnHandIsChecked = false;
|
|
|
|
|
|
- if(BtnSelecttoolIsChecked&& tag!= "SnapshotEdit")
|
|
|
- BtnSelecttoolIsChecked=false;
|
|
|
+ if (BtnSelecttoolIsChecked && tag != "SnapshotEdit")
|
|
|
+ BtnSelecttoolIsChecked = false;
|
|
|
PDFViewer.ClearSelectAnnots();
|
|
|
|
|
|
|
|
@@ -1773,14 +1779,19 @@ namespace PDF_Master.ViewModels.Tools
|
|
|
AnnotHandlerEventArgs annotArgs = null;
|
|
|
StrAnnotToolChecked = tuple.Item2;
|
|
|
FindAnnotTypeKey(tuple.Item2, ref annotArgs);
|
|
|
- if (annotArgs != null)
|
|
|
+ if (annotArgs != null && tuple.Item2 != "Stamp")
|
|
|
{
|
|
|
annotArgs.Author = Settings.Default.AppProperties.Description.Author;
|
|
|
PDFViewer.SetMouseMode(MouseModes.AnnotCreate);
|
|
|
PDFViewer.SetToolParam(annotArgs);
|
|
|
PDFViewer.ToolManager.EnableClickCreate = false;
|
|
|
- }
|
|
|
- }
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+
|
|
|
+ PDFViewer.SetMouseMode(MouseModes.None);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
private Tuple<Key, string> GetCtrlAltKey()
|