|
@@ -150,7 +150,8 @@ namespace PDF_Office.Helper
|
|
catch { }
|
|
catch { }
|
|
}
|
|
}
|
|
|
|
|
|
- public static DefaultAnnotProperty GetAnnotDefaultProperty(AnnotArgsType annotToolType,string saveKey="")
|
|
|
|
|
|
+ #region 缓存注释属性
|
|
|
|
+ public static DefaultAnnotProperty GetAnnotDefaultProperty(AnnotArgsType annotToolType, string saveKey = "")
|
|
{
|
|
{
|
|
if (Settings.Default.DefautAnnotProperties != null)
|
|
if (Settings.Default.DefautAnnotProperties != null)
|
|
{
|
|
{
|
|
@@ -162,7 +163,6 @@ namespace PDF_Office.Helper
|
|
}
|
|
}
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|
|
-
|
|
|
|
public static void SetAnnotDefaultProperty(DefaultAnnotProperty annotProperty)
|
|
public static void SetAnnotDefaultProperty(DefaultAnnotProperty annotProperty)
|
|
{
|
|
{
|
|
if (Settings.Default.DefautAnnotProperties == null)
|
|
if (Settings.Default.DefautAnnotProperties == null)
|
|
@@ -172,6 +172,33 @@ namespace PDF_Office.Helper
|
|
Settings.Default.DefautAnnotProperties.SetAnnotProperty(annotProperty);
|
|
Settings.Default.DefautAnnotProperties.SetAnnotProperty(annotProperty);
|
|
Settings.Default.Save();
|
|
Settings.Default.Save();
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ #endregion 缓存注释属性
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ #region 缓存颜色列表
|
|
|
|
+
|
|
|
|
+ public static void SetColorSelector(ColorSelectorItem selectorItem)
|
|
|
|
+ {
|
|
|
|
+ if (Settings.Default.ColorSelectors == null)
|
|
|
|
+ {
|
|
|
|
+ Settings.Default.ColorSelectors = new ColorSelectorList();
|
|
|
|
+ }
|
|
|
|
+ Settings.Default.ColorSelectors.SetColorSelector(selectorItem);
|
|
|
|
+ Settings.Default.Save();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public static ColorSelectorItem GetColorSelectorItem(ColorSelectorType selectorType,int Index)
|
|
|
|
+ {
|
|
|
|
+ if (Settings.Default.ColorSelectors != null)
|
|
|
|
+ {
|
|
|
|
+ return Settings.Default.ColorSelectors.GetColorSelector(selectorType, Index);
|
|
|
|
+ }
|
|
|
|
+ return null;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ #endregion 缓存颜色列表
|
|
|
|
+
|
|
private static string KeyAlaphabet = "0123456789ABCDEFGHIGKLMNOPQRSTUVWXYZ";
|
|
private static string KeyAlaphabet = "0123456789ABCDEFGHIGKLMNOPQRSTUVWXYZ";
|
|
public static char NumberToChar(int num)
|
|
public static char NumberToChar(int num)
|
|
{
|
|
{
|