/// <summary> /// 開始驗證 /// </summary> public void StartValidate(IEnumerable <string> list) { BeginValidateEventArgs args = new BeginValidateEventArgs(); List <string> l = new List <string>(); foreach (string var in list) { l.Add(var); } args.List = l.ToArray(); OnBeginValidate(args); if (BeginValidate != null) { BeginValidate.Invoke(this, args); } }
/// <summary> /// 開始驗證資料 /// </summary> /// <param name="args"></param> protected virtual void OnBeginValidate(BeginValidateEventArgs args) { }