예제 #1
0
        public static bool IsFirstLogin(string nick)
        {
            bool param2Key;

            if (param2Key = PersistentParams.GetParam2Key("IsFirstLogin", nick, true))
            {
                PersistentParams.TrySaveParam2Key("IsFirstLogin", nick, false);
            }
            return(param2Key);
        }
예제 #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));
                }
            }
예제 #3
0
 public static void SetBottomPanelHeight(string seller, int height)
 {
     Util.Assert(height >= 100);
     PersistentParams.TrySaveParam2Key("PanelBottomHeight", seller, height);
 }
예제 #4
0
 public static void SetRightPanelWidth(string seller, int width)
 {
     Util.Assert(width >= 365);
     PersistentParams.TrySaveParam2Key("PanelRightWidth", seller, width);
 }
예제 #5
0
 public static void SaveLatestCheckDbDeleteTime(string dbAccount)
 {
     PersistentParams.TrySaveParam2Key("LatestCheckDbDeleteTime", dbAccount, BatTime.Now);
 }
예제 #6
0
 public static void SetQuoteModeSendAnswerWhenFullMatch(string nick, bool quoteModeSendAnswerWhenFullMatch)
 {
     PersistentParams.TrySaveParam2Key <bool>("QuoteModeSendAnswerWhenFullMatch", nick, quoteModeSendAnswerWhenFullMatch);
 }
예제 #7
0
 public static void SetSendModeReplyDelaySec(string nick, int sendModeReplyDelaySec)
 {
     PersistentParams.TrySaveParam2Key <int>("SendModeReplyDelaySec", nick, sendModeReplyDelaySec);
 }
예제 #8
0
 public static void SetAutoModeReplyDelaySec(string nick, int autoModeReplyDelaySec)
 {
     PersistentParams.TrySaveParam2Key <int>("AutoModeReplyDelaySec", nick, autoModeReplyDelaySec);
 }
예제 #9
0
 public static void SetLatestSynOkTime(string dbAccount)
 {
     PersistentParams.TrySaveParam2Key("LatestSynOkTime", dbAccount, BatTime.Now);
 }
예제 #10
0
 public static void SetShowType(string nick, Params.Shortcut.ShowType showType)
 {
     PersistentParams.TrySaveParam2Key <Params.Shortcut.ShowType>("Shortcut.ShowType", nick, showType);
 }
예제 #11
0
 public static void SetIsShowTitleButtons(string nick, bool isShowTitleButtons)
 {
     PersistentParams.TrySaveParam2Key("Robot.IsShowTitleButtons", nick, isShowTitleButtons);
 }
예제 #12
0
 public static void SetIsAllAccountEditRobot(string nick, bool isAllAccountEditRobot)
 {
     PersistentParams.TrySaveParam2Key <bool>("IsAllAccountEditRobot", AccountHelper.GetPubDbAccount(nick), isAllAccountEditRobot);
 }
예제 #13
0
 public static void SetSuperAccounts(string nick, string accounts)
 {
     PersistentParams.TrySaveParam2Key <string>("Auth.SuperAccounts", nick, accounts);
 }
예제 #14
0
 public static void SetIsShowDetailAsTooltip(string nick, bool isShowDetailAsTooltip)
 {
     PersistentParams.TrySaveParam2Key("BuyerNote.IsShowDetailAsTooltip", nick, isShowDetailAsTooltip);
 }
예제 #15
0
 public static void SetIsPreferSelfNote(string nick, bool isPreferSelfNote)
 {
     PersistentParams.TrySaveParam2Key("BuyerNote.IsPreferSelfNote", nick, isPreferSelfNote);
 }
예제 #16
0
 public static void SetRuleIncludeExcept(string nick, bool ruleIncludeExcept)
 {
     PersistentParams.TrySaveParam2Key <bool>("RuleIncludeExcept", AccountHelper.GetPubDbAccount(nick), ruleIncludeExcept);
 }
예제 #17
0
 public static void SetPreServerSynTick(string dbAccount, long synTicks)
 {
     PersistentParams.TrySaveParam2Key("PreServerSynTick", dbAccount, synTicks);
 }
예제 #18
0
 public static void SetWndNotTipAgainNeedShow(string key, bool wndNotTipAgainNeedShow)
 {
     PersistentParams.TrySaveParam2Key("WndNotTipAgainNeedShow", WndNotTipAgain.LocalParams.GetUniqueMasterkey(key), wndNotTipAgainNeedShow);
 }