TableColors.cs 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. // ***********************************************************************
  2. // Assembly : HZH_Controls
  3. // Created : 2019-09-30
  4. //
  5. // ***********************************************************************
  6. // <copyright file="TableColors.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. /// Class TableColors.
  25. /// </summary>
  26. public class TableColors
  27. {
  28. /// <summary>
  29. /// The green
  30. /// </summary>
  31. private static Color green = ColorTranslator.FromHtml("#c2e7b0");
  32. /// <summary>
  33. /// Gets the green.
  34. /// </summary>
  35. /// <value>The green.</value>
  36. public static Color Green
  37. {
  38. get { return green; }
  39. internal set { green = value; }
  40. }
  41. /// <summary>
  42. /// The blue
  43. /// </summary>
  44. private static Color blue = ColorTranslator.FromHtml("#a3d0fd");
  45. /// <summary>
  46. /// Gets the blue.
  47. /// </summary>
  48. /// <value>The blue.</value>
  49. public static Color Blue
  50. {
  51. get { return blue; }
  52. internal set { blue = value; }
  53. }
  54. /// <summary>
  55. /// The red
  56. /// </summary>
  57. private static Color red = ColorTranslator.FromHtml("#fbc4c4");
  58. /// <summary>
  59. /// Gets the red.
  60. /// </summary>
  61. /// <value>The red.</value>
  62. public static Color Red
  63. {
  64. get { return red; }
  65. internal set { red = value; }
  66. }
  67. /// <summary>
  68. /// The yellow
  69. /// </summary>
  70. private static Color yellow = ColorTranslator.FromHtml("#f5dab1");
  71. /// <summary>
  72. /// Gets the yellow.
  73. /// </summary>
  74. /// <value>The yellow.</value>
  75. public static Color Yellow
  76. {
  77. get { return yellow; }
  78. internal set { yellow = value; }
  79. }
  80. /// <summary>
  81. /// The gray
  82. /// </summary>
  83. private static Color gray = ColorTranslator.FromHtml("#d3d4d6");
  84. /// <summary>
  85. /// Gets the gray.
  86. /// </summary>
  87. /// <value>The gray.</value>
  88. public static Color Gray
  89. {
  90. get { return gray; }
  91. internal set { gray = value; }
  92. }
  93. }
  94. }