public static bool SendRuleExceptionEvent(object sender, RuleExceptionEventArgs e) { if (e != null && e.Rule != null) { return(e.Rule.SendRuleExceptionEvent(sender, e)); } return(false); }
public bool SendRuleExceptionEvent(object sender, RuleExceptionEventArgs e) { if (OnRuleExceptionEventHandle != null) { return(OnRuleExceptionEventHandle(sender, e)); } return(false); }
protected virtual bool DoRuleExceptionEvent(object sender, RuleExceptionEventArgs e) { if (e.Exception != null) { if (MessageBox.Show(e.Exception.Message + "马上修正吗?", "编辑控件提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { return(true); } } return(false); }