StatusColors.cs 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. // ***********************************************************************
  2. // Assembly : HZH_Controls
  3. // Created : 2019-09-30
  4. //
  5. // ***********************************************************************
  6. // <copyright file="StatusColors.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.Drawing;
  19. using System.Linq;
  20. using System.Text;
  21. namespace HZH_Controls
  22. {
  23. /// <summary>
  24. /// 状态颜色
  25. /// </summary>
  26. public class StatusColors
  27. {
  28. /// <summary>
  29. /// The primary
  30. /// </summary>
  31. private static Color _Primary = ColorTranslator.FromHtml("#409eff");
  32. /// <summary>
  33. /// Gets or sets the primary.
  34. /// </summary>
  35. /// <value>The primary.</value>
  36. public static Color Primary
  37. {
  38. get { return _Primary; }
  39. internal set { _Primary = value; }
  40. }
  41. /// <summary>
  42. /// The success
  43. /// </summary>
  44. private static Color _Success = ColorTranslator.FromHtml("#67c23a");
  45. /// <summary>
  46. /// Gets or sets the success.
  47. /// </summary>
  48. /// <value>The success.</value>
  49. public static Color Success
  50. {
  51. get { return _Success; }
  52. internal set { _Success = value; }
  53. }
  54. /// <summary>
  55. /// The warning
  56. /// </summary>
  57. private static Color _Warning = ColorTranslator.FromHtml("#e6a23c");
  58. /// <summary>
  59. /// Gets or sets the warning.
  60. /// </summary>
  61. /// <value>The warning.</value>
  62. public static Color Warning
  63. {
  64. get { return _Warning; }
  65. internal set { _Warning = value; }
  66. }
  67. /// <summary>
  68. /// The danger
  69. /// </summary>
  70. private static Color _Danger = ColorTranslator.FromHtml("#f56c6c");
  71. /// <summary>
  72. /// Gets or sets the danger.
  73. /// </summary>
  74. /// <value>The danger.</value>
  75. public static Color Danger
  76. {
  77. get { return _Danger; }
  78. internal set { _Danger = value; }
  79. }
  80. /// <summary>
  81. /// The information
  82. /// </summary>
  83. private static Color _Info = ColorTranslator.FromHtml("#909399");
  84. /// <summary>
  85. /// Gets or sets the information.
  86. /// </summary>
  87. /// <value>The information.</value>
  88. public static Color Info
  89. {
  90. get { return _Info; }
  91. internal set { _Info = value; }
  92. }
  93. }
  94. }