示例#1
0
 /// <summary>
 /// 将当前设置为默认设置
 /// </summary>
 public override void SetDefaultSetting()
 {
     if (_defaultSetting == null)
     {
         _defaultSetting = this;
     }
     else
     {
         _defaultSetting.UpdateValue(this);
     }
     DatabaseServices.Update(DefaultSetting.Id, DefaultSetting);
 }
示例#2
0
        /// <summary>
        /// 创建系统默认的设置
        /// </summary>
        public static DbItemSettingTelnet FromDefault()
        {
            DbItemSettingTelnet itemSetting = new DbItemSettingTelnet
            {
                Cursor       = 1,
                FontSize     = 12,
                Character    = 65001,
                Fallbackkeys = 2,
                MouseAction  = 1,
                HomeAndEnd   = 1,
                FnAndKeypad  = 3,
                OpenMode     = 1,
                SizeIndex    = 1,
                FontName     = "Consolas",
                ColorScheme  = "默认配色",
                CRImpliesLF  = false,
                LFImpliesCR  = false,
                CJKAmbigWide = false,
                CapsLockCyr  = false,
            };

            return(itemSetting);
        }