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