RaUI/Source/ryControls/Sheng.Winform.Controls/IShengValidate.cs
鑫Intel 8b41f58f5c ### 2021-07-01更新
------
#### ryControlsV4    V3.0.2107.0101
- *.[新增]新增Sheng.Winform.Controls部分控件。

#### RyWeb    V3.0.2107.0101
- *.[新增]QuickWeb新增引用页设置。
#### MyDbV4    V3.0.2107.0101
- *.[新增]支持忽略大小写的替换功能。
2021-07-04 09:41:31 +08:00

36 lines
965 B
C#

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
{
/// <summary>
/// 验证失败中显示错误信息时用的标题
/// </summary>
string Title { get; set; }
/// <summary>
/// 验证失败时是否需要高亮显示(改变背景色)
/// </summary>
bool HighLight { get; set; }
/// <summary>
/// 验证控件的输入
/// </summary>
/// <param name="msg"></param>
/// <returns></returns>
bool SEValidate(out string msg);
/// <summary>
/// 自定义验证方法
/// 在基础验证都通过后,才会调用自定义验证方法(如果有)
/// </summary>
CustomValidateMethod CustomValidate { get; set; }
}
}