|
@@ -40,6 +40,7 @@ namespace PDF_Master.ViewModels.FillAndSign.PropertyPanel
|
|
|
public List<List<Point>> updatapath = new List<List<Point>>();
|
|
|
private Geometry dataPath = null;
|
|
|
private bool IsFillAndSign = false;
|
|
|
+ private bool IsUpDataCreate = false;
|
|
|
public string shape = "";
|
|
|
public string Shape
|
|
|
{
|
|
@@ -50,7 +51,14 @@ namespace PDF_Master.ViewModels.FillAndSign.PropertyPanel
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+ public bool _isCreate = false;
|
|
|
+ public bool IsCreate
|
|
|
+ {
|
|
|
+ get {
|
|
|
+ if (fillAndSignContentViewModel != null) { if (fillAndSignContentViewModel.PDFViewer.MouseMode != MouseModes.AnnotCreate) { return false; } else { return true; } }
|
|
|
+ else { return false; }
|
|
|
+ }
|
|
|
+ }
|
|
|
public string shapeType = "";
|
|
|
public string ShapeType
|
|
|
{
|
|
@@ -574,7 +582,7 @@ namespace PDF_Master.ViewModels.FillAndSign.PropertyPanel
|
|
|
|
|
|
if (!fillAndSignContentViewModel.isFirst)
|
|
|
{
|
|
|
- fillAndSignContentViewModel.LineWidth = LineWidth;
|
|
|
+
|
|
|
|
|
|
//if (FillAndSignContentViewModel.IsEdit)
|
|
|
{
|
|
@@ -584,7 +592,7 @@ namespace PDF_Master.ViewModels.FillAndSign.PropertyPanel
|
|
|
}
|
|
|
// else
|
|
|
{
|
|
|
- if (IsFillAndSign) { fillAndSignContentViewModel.SetStamp(); }
|
|
|
+ if (IsFillAndSign&&IsUpDataCreate && IsCreate) { fillAndSignContentViewModel.LineWidth = LineWidth; fillAndSignContentViewModel.SetStamp(); }
|
|
|
|
|
|
}
|
|
|
|
|
@@ -601,7 +609,7 @@ namespace PDF_Master.ViewModels.FillAndSign.PropertyPanel
|
|
|
if (newColor.A != oldColor.A || newColor.B != oldColor.B || newColor.R != oldColor.R || newColor.G != oldColor.G)
|
|
|
{
|
|
|
ShapeColorColor = SelectColor;
|
|
|
- fillAndSignContentViewModel.SelectColor = SelectColor;
|
|
|
+
|
|
|
//if (FillAndSignContentViewModel.IsEdit)
|
|
|
{
|
|
|
// PropertyPanel.UpdateAnnotAAttrib(AnnotAttrib.Thickness, LineWidth * lineWidthMultiple);
|
|
@@ -610,7 +618,10 @@ namespace PDF_Master.ViewModels.FillAndSign.PropertyPanel
|
|
|
}
|
|
|
//else
|
|
|
{
|
|
|
- if (IsFillAndSign) { fillAndSignContentViewModel.SetStamp(); }
|
|
|
+ if (IsFillAndSign&&IsUpDataCreate&&IsCreate) {
|
|
|
+ fillAndSignContentViewModel.SelectColor = SelectColor;
|
|
|
+ fillAndSignContentViewModel.SetStamp();
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
}
|
|
@@ -620,7 +631,7 @@ namespace PDF_Master.ViewModels.FillAndSign.PropertyPanel
|
|
|
{
|
|
|
if (!fillAndSignContentViewModel.isFirst)
|
|
|
{
|
|
|
- fillAndSignContentViewModel.FillOpacity = FillOpacity;
|
|
|
+
|
|
|
|
|
|
//if (FillAndSignContentViewModel.IsEdit)
|
|
|
{
|
|
@@ -630,7 +641,7 @@ namespace PDF_Master.ViewModels.FillAndSign.PropertyPanel
|
|
|
|
|
|
//else
|
|
|
{
|
|
|
- if (IsFillAndSign) { fillAndSignContentViewModel.SetStamp(); }
|
|
|
+ if (IsFillAndSign&&IsUpDataCreate&&IsCreate) { fillAndSignContentViewModel.FillOpacity = FillOpacity; fillAndSignContentViewModel.SetStamp(); }
|
|
|
|
|
|
}
|
|
|
|
|
@@ -912,8 +923,9 @@ namespace PDF_Master.ViewModels.FillAndSign.PropertyPanel
|
|
|
ForkIsChecked = true;
|
|
|
|
|
|
}
|
|
|
+ IsUpDataCreate = false;
|
|
|
SelectColor = new SolidColorBrush(annot.InkColor);
|
|
|
-
|
|
|
+ IsUpDataCreate=true;
|
|
|
|
|
|
FillOpacity = annot.Transparency;
|
|
|
InitShapesType(point.Shape);
|