Esempio n. 1
0
 public static bool SendRuleExceptionEvent(object sender, RuleExceptionEventArgs e)
 {
     if (e != null && e.Rule != null)
     {
         return(e.Rule.SendRuleExceptionEvent(sender, e));
     }
     return(false);
 }
Esempio n. 2
0
        public bool SendRuleExceptionEvent(object sender, RuleExceptionEventArgs e)
        {
            if (OnRuleExceptionEventHandle != null)
            {
                return(OnRuleExceptionEventHandle(sender, e));
            }

            return(false);
        }
Esempio n. 3
0
 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);
 }