public void Save(string seller) { Params.Robot.CancelAutoOnReset = cboxCancelAutoOnReset.IsChecked.HasValue && cboxCancelAutoOnReset.IsChecked.Value; Params.Robot.SetAutoModeNoAnswerTip(seller, tboxNoAnswerTip.Text); Params.Robot.SetAutoModeReplyDelaySec(_seller, ConvertEx.ToInt32Safe(tboxAutoDelay.Text.Trim(), 0)); Params.Robot.SetSendModeReplyDelaySec(_seller, ConvertEx.ToInt32Safe(tboxSendDelay.Text.Trim(), 0)); Params.Robot.SetQuoteModeSendAnswerWhenFullMatch(_seller, cboxAlwaysSend.IsChecked.HasValue && cboxAlwaysSend.IsChecked.Value); bool ruleIncludeExcept = Params.Robot.GetRuleIncludeExcept(_sellerMain); if (ruleIncludeExcept != (cboxKeyExclude.IsChecked.HasValue && cboxKeyExclude.IsChecked.Value)) { Params.Robot.SetRuleIncludeExcept(_sellerMain, cboxKeyExclude.IsChecked.HasValue && cboxKeyExclude.IsChecked.Value); var wndAssist = WndAssist.FindWndAssist(_seller); if (wndAssist != null) { wndAssist.ctlRightPanel.UpdateRobotTab(); } } }
private void UpdateShortcutUI() { var wndAssist = WndAssist.FindWndAssist(_seller); wndAssist.ctlRightPanel.UpdateShortcutUI(); }