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

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