using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Sheng.Winform.Controls { /// /// /// /// /// /// public delegate bool CustomValidateMethod(object sender, out string msg); interface IShengValidate { /// /// 验证失败中显示错误信息时用的标题 /// string Title { get; set; } /// /// 验证失败时是否需要高亮显示(改变背景色) /// bool HighLight { get; set; } /// /// 验证控件的输入 /// /// /// bool SEValidate(out string msg); /// /// 自定义验证方法 /// 在基础验证都通过后,才会调用自定义验证方法(如果有) /// CustomValidateMethod CustomValidate { get; set; } } }