|
@@ -126,6 +126,12 @@ namespace PDF_Office.ViewModels.PropertyPanel.AnnotPanel
|
|
|
|
|
|
private void SetAnnotType()
|
|
private void SetAnnotType()
|
|
{
|
|
{
|
|
|
|
+ if(BasicVm.IsMultiSelected)
|
|
|
|
+ {
|
|
|
|
+ BasicVm.AnnotTypeTitle = "General Properties";
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
switch (BasicVm.AnnotType)
|
|
switch (BasicVm.AnnotType)
|
|
{
|
|
{
|
|
case AnnotArgsType.AnnotHighlight:
|
|
case AnnotArgsType.AnnotHighlight:
|
|
@@ -159,14 +165,11 @@ namespace PDF_Office.ViewModels.PropertyPanel.AnnotPanel
|
|
navigationContext.Parameters.TryGetValue<AnnotPropertyPanel>(ParameterNames.PropertyPanelContentViewModel, out PropertyPanel);
|
|
navigationContext.Parameters.TryGetValue<AnnotPropertyPanel>(ParameterNames.PropertyPanelContentViewModel, out PropertyPanel);
|
|
if(PropertyPanel != null)
|
|
if(PropertyPanel != null)
|
|
{
|
|
{
|
|
- AnnotEvent = PropertyPanel.AnnotEvent;
|
|
|
|
- Annot = PropertyPanel.annot;
|
|
|
|
- BasicVm.AnnotType = Annot.EventType;
|
|
|
|
- BasicVm.IsMultiSelected = PropertyPanel.IsMultiSelected;
|
|
|
|
|
|
+ AllVariable();
|
|
SetAnnotType();
|
|
SetAnnotType();
|
|
|
|
|
|
//多选注释,默认通用属性颜色为高亮注释的预设颜色
|
|
//多选注释,默认通用属性颜色为高亮注释的预设颜色
|
|
- if(BasicVm.IsMultiSelected)
|
|
|
|
|
|
+ if (BasicVm.IsMultiSelected)
|
|
{
|
|
{
|
|
var annotate = Settings.Default.AppProperties.Annotate;
|
|
var annotate = Settings.Default.AppProperties.Annotate;
|
|
if (annotate != null)
|
|
if (annotate != null)
|
|
@@ -186,6 +189,15 @@ namespace PDF_Office.ViewModels.PropertyPanel.AnnotPanel
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ //全局变量,优先集中处理
|
|
|
|
+ private void AllVariable()
|
|
|
|
+ {
|
|
|
|
+ AnnotEvent = PropertyPanel.AnnotEvent;
|
|
|
|
+ Annot = PropertyPanel.annot;
|
|
|
|
+ BasicVm.AnnotType = Annot.EventType;
|
|
|
|
+ BasicVm.IsMultiSelected = PropertyPanel.IsMultiSelected;
|
|
|
|
+ }
|
|
|
|
+
|
|
private void GetAnnotProperty()
|
|
private void GetAnnotProperty()
|
|
{
|
|
{
|
|
if (Annot != null)
|
|
if (Annot != null)
|