Esempio n. 1
0
        public static bool IsFirstLogin(string nick)
        {
            bool param2Key;

            if (param2Key = PersistentParams.GetParam2Key("IsFirstLogin", nick, true))
            {
                PersistentParams.TrySaveParam2Key("IsFirstLogin", nick, false);
            }
            return(param2Key);
        }
Esempio n. 2
0
            public static void SetPreUploadSynTick(string dbAccount, long synTicks)
            {
                DateTime now = DateTime.Now;

                PersistentParams.TrySaveParam2Key("PreUploadSynTick", dbAccount, synTicks);
                if (!SynParams._hadLogSetPreClientUploadSynTick)
                {
                    SynParams._hadLogSetPreClientUploadSynTick = true;
                    Log.Info(string.Format("SetPreClientUploadSynTick,timeElapse={0}ms", now.xElapse().TotalMilliseconds));
                }
            }
Esempio n. 3
0
 public static void SetBottomPanelHeight(string seller, int height)
 {
     Util.Assert(height >= 100);
     PersistentParams.TrySaveParam2Key("PanelBottomHeight", seller, height);
 }
Esempio n. 4
0
 public static void SetRightPanelWidth(string seller, int width)
 {
     Util.Assert(width >= 365);
     PersistentParams.TrySaveParam2Key("PanelRightWidth", seller, width);
 }
Esempio n. 5
0
 public static void SaveLatestCheckDbDeleteTime(string dbAccount)
 {
     PersistentParams.TrySaveParam2Key("LatestCheckDbDeleteTime", dbAccount, BatTime.Now);
 }
Esempio n. 6
0
 public static void SetQuoteModeSendAnswerWhenFullMatch(string nick, bool quoteModeSendAnswerWhenFullMatch)
 {
     PersistentParams.TrySaveParam2Key <bool>("QuoteModeSendAnswerWhenFullMatch", nick, quoteModeSendAnswerWhenFullMatch);
 }
Esempio n. 7
0
 public static void SetSendModeReplyDelaySec(string nick, int sendModeReplyDelaySec)
 {
     PersistentParams.TrySaveParam2Key <int>("SendModeReplyDelaySec", nick, sendModeReplyDelaySec);
 }
Esempio n. 8
0
 public static void SetAutoModeReplyDelaySec(string nick, int autoModeReplyDelaySec)
 {
     PersistentParams.TrySaveParam2Key <int>("AutoModeReplyDelaySec", nick, autoModeReplyDelaySec);
 }
Esempio n. 9
0
 public static void SetLatestSynOkTime(string dbAccount)
 {
     PersistentParams.TrySaveParam2Key("LatestSynOkTime", dbAccount, BatTime.Now);
 }
Esempio n. 10
0
 public static void SetShowType(string nick, Params.Shortcut.ShowType showType)
 {
     PersistentParams.TrySaveParam2Key <Params.Shortcut.ShowType>("Shortcut.ShowType", nick, showType);
 }
Esempio n. 11
0
 public static void SetIsShowTitleButtons(string nick, bool isShowTitleButtons)
 {
     PersistentParams.TrySaveParam2Key("Robot.IsShowTitleButtons", nick, isShowTitleButtons);
 }
Esempio n. 12
0
 public static void SetIsAllAccountEditRobot(string nick, bool isAllAccountEditRobot)
 {
     PersistentParams.TrySaveParam2Key <bool>("IsAllAccountEditRobot", AccountHelper.GetPubDbAccount(nick), isAllAccountEditRobot);
 }
Esempio n. 13
0
 public static void SetSuperAccounts(string nick, string accounts)
 {
     PersistentParams.TrySaveParam2Key <string>("Auth.SuperAccounts", nick, accounts);
 }
Esempio n. 14
0
 public static void SetIsShowDetailAsTooltip(string nick, bool isShowDetailAsTooltip)
 {
     PersistentParams.TrySaveParam2Key("BuyerNote.IsShowDetailAsTooltip", nick, isShowDetailAsTooltip);
 }
Esempio n. 15
0
 public static void SetIsPreferSelfNote(string nick, bool isPreferSelfNote)
 {
     PersistentParams.TrySaveParam2Key("BuyerNote.IsPreferSelfNote", nick, isPreferSelfNote);
 }
Esempio n. 16
0
 public static void SetRuleIncludeExcept(string nick, bool ruleIncludeExcept)
 {
     PersistentParams.TrySaveParam2Key <bool>("RuleIncludeExcept", AccountHelper.GetPubDbAccount(nick), ruleIncludeExcept);
 }
Esempio n. 17
0
 public static void SetPreServerSynTick(string dbAccount, long synTicks)
 {
     PersistentParams.TrySaveParam2Key("PreServerSynTick", dbAccount, synTicks);
 }
Esempio n. 18
0
 public static void SetWndNotTipAgainNeedShow(string key, bool wndNotTipAgainNeedShow)
 {
     PersistentParams.TrySaveParam2Key("WndNotTipAgainNeedShow", WndNotTipAgain.LocalParams.GetUniqueMasterkey(key), wndNotTipAgainNeedShow);
 }