示例#1
0
 public Local()
 {
     IsFullScreenProperty           = uSettings.Register("isFullScreen", false, true);
     AppSizeProperty                = uSettings.Register("appSize", new Size(0.7, 0.7));
     AppLocationProperty            = uSettings.Register("appLocation", new Point(0.15, 0.15));
     IsMaxShowProperty              = uSettings.Register("isMaxShow", false);
     EditBackgroundColorProperty    = uSettings.Register("editBackgroundColor", Color.FromRgb(20, 32, 0), true);
     EditBackgroundColorOldproperty = uSettings.Register("editBackgroundColorOld", Color.FromRgb(20, 32, 0));
     ColumnDefiMinProperty          = uSettings.Register("columnDefiMin", 0.0);
     RowDefiMinProperty             = uSettings.Register("rowDefiMin", 0.0);
     EditColorProperty              = uSettings.Register("editcolor", new Color[] {
         Color.FromRgb(255, 172, 17),
         Color.FromRgb(253, 99, 40),
         Color.FromRgb(205, 119, 251),
         Color.FromRgb(1, 199, 252),
         Color.FromRgb(12, 116, 102),
         Colors.Chocolate,
         Color.FromRgb(12, 234, 145),
         Colors.White
     }, true);
     EditBackgroundColorHistoryProperty = uSettings.Register("editBackgroundColorHistory", new Color[0]);
     ExitEditIntervalProperty           = uSettings.Register("exitEditInterval", 12);
     EditColorHistoryProperty           = uSettings.Register("editcolorHistory", new Color[0], true);
     IsEditBrushOpenProperty            = uSettings.Register("isEditBrushOpen", false, true);
     IsRtxHiddenProperty               = uSettings.Register("isRtxHidden", false, true);
     InkColorIndexProperty             = uSettings.Register("inkColorIndex", 0);
     InkPenWidthProperty               = uSettings.Register("inkPenWidth", 4.0);
     BackgroundModeProperty            = uSettings.Register("BackgroundMode", 0, true);
     BackgroundPicPathProperty         = uSettings.Register("BackgroundPicPath", "");
     BackgroundPicFolderProperty       = uSettings.Register("BackgroundPicFolderPath", "");
     BackgroundPicTimestampProperty    = uSettings.Register("BackgroundPicTimestamp", 15.0);
     BackgroundPicLastTimeProperty     = uSettings.Register("BackgroundPicLastTime", new DateTime());
     BackgroundPicCurrentindexProperty = uSettings.Register("BackgroundPicCurrentindex", 0);
     WeatherisOpenProperty             = uSettings.Register("WeatherisOpen", false, true);
     WeathercityProperty               = uSettings.Register("Weathercity", "杭州", true);
     WeatherTimestampProperty          = uSettings.Register("WeatherTimestamp", 120.0);
     WeatherLastTimeProperty           = uSettings.Register("WeatherLastTime", new DateTime());
     CheckisOpenProperty               = uSettings.Register("CheckisOpen", false, true);
     CheckDataProperty = uSettings.Register("CheckData", new AutoCheckCollection()
     {
         new AutoCheck("ZWY")
         {
             Num = 100
         }
     });
     IsAutoUpdateProperty    = uSettings.Register("IsAutoUpdate", false, true);
     UpdateTimestampProperty = uSettings.Register("UpdateTimestamp", 120.0);
     UpdateLastTimeProperty  = uSettings.Register("UpdateLastTime", new DateTime());
     NoticeLastTimeProperty  = uSettings.Register("NoticeLastTime", new DateTime());
     AllowTranspancyProperty = uSettings.Register("AllowTranspancy", false);
 }
示例#2
0
 public EditTemp(string folder, bool isRoot = false)
 {
     if (!isRoot)
     {
         if (folder != null)
         {
             EditTempFolder = AppData.EditFolder + folder + @"\";
         }
         else
         {
             EditTempFolder = AppData.ModFolder;
         }
     }
     else
     {
         EditTempFolder = folder;
     }
     uSettings            = new USettings(EditTempFolder, "Edit");
     CreateTimeProperty   = uSettings.Register("createTime", new DateTime());
     TitleProperty        = uSettings.Register("title", "");
     EditFileTypeProperty = uSettings.Register("editfiletype", 0);
 }