VerificationEventArgs.cs 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. // ***********************************************************************
  2. // Assembly : HZH_Controls
  3. // Created : 2019-09-27
  4. //
  5. // ***********************************************************************
  6. // <copyright file="VerificationEventArgs.cs">
  7. // Copyright by Huang Zhenghui(黄正辉) All, QQ group:568015492 QQ:623128629 Email:623128629@qq.com
  8. // </copyright>
  9. //
  10. // Blog: https://www.cnblogs.com/bfyx
  11. // GitHub:https://github.com/kwwwvagaa/NetWinformControl
  12. // gitee:https://gitee.com/kwwwvagaa/net_winform_custom_control.git
  13. //
  14. // If you use this code, please keep this note.
  15. // ***********************************************************************
  16. using System;
  17. using System.Collections.Generic;
  18. using System.Linq;
  19. using System.Text;
  20. using System.Windows.Forms;
  21. namespace HZH_Controls.Controls
  22. {
  23. /// <summary>
  24. /// Class VerificationEventArgs.
  25. /// Implements the <see cref="System.EventArgs" />
  26. /// </summary>
  27. /// <seealso cref="System.EventArgs" />
  28. public class VerificationEventArgs : EventArgs
  29. {
  30. /// <summary>
  31. /// Gets or sets the verification control.
  32. /// </summary>
  33. /// <value>The verification control.</value>
  34. public Control VerificationControl { get; set; }
  35. /// <summary>
  36. /// Gets or sets a value indicating whether [verify success].
  37. /// </summary>
  38. /// <value><c>true</c> if [verify success]; otherwise, <c>false</c>.</value>
  39. public bool IsVerifySuccess { get; set; }
  40. /// <summary>
  41. /// Gets or sets the verification model.
  42. /// </summary>
  43. /// <value>The verification model.</value>
  44. public VerificationModel VerificationModel { get; set; }
  45. /// <summary>
  46. /// 是否已处理,如果为true,则不再使用默认验证提示功能
  47. /// </summary>
  48. /// <value><c>true</c> if this instance is processed; otherwise, <c>false</c>.</value>
  49. public bool IsProcessed { get; set; }
  50. /// <summary>
  51. /// Gets or sets 正则表达式
  52. /// </summary>
  53. /// <value>The custom regex.</value>
  54. public string Regex { get; set; }
  55. /// <summary>
  56. /// Gets or sets a value indicating whether this <see cref="VerificationEventArgs"/> is required.
  57. /// </summary>
  58. /// <value><c>true</c> if required; otherwise, <c>false</c>.</value>
  59. public bool Required { get; set; }
  60. /// <summary>
  61. /// Gets or sets the error MSG.
  62. /// </summary>
  63. /// <value>The error MSG.</value>
  64. public string ErrorMsg { get; set; }
  65. }
  66. }