CalendarDay.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. /**
  2. * Namespace: System.Web.UI.WebControls
  3. * Class: CalendarDay
  4. *
  5. * Author: Gaurav Vaish
  6. * Maintainer: [email protected]
  7. * Contact: <[email protected]>, <[email protected]>
  8. * Implementation: yes
  9. * Status: 100%
  10. *
  11. * (C) Gaurav Vaish (2001)
  12. */
  13. using System;
  14. using System.Web;
  15. using System.Web.UI;
  16. namespace System.Web.UI.WebControls
  17. {
  18. public class CalendarDay
  19. {
  20. private DateTime date;
  21. private bool isWeekend;
  22. private bool isToday;
  23. private bool isSelected;
  24. private bool isOtherMonth;
  25. private bool isSelectable;
  26. private string dayNumberText;
  27. public CalendarDay(DateTime date, bool isWeekend, bool isToday, bool isSelected, bool isOtherMonth, string dayNumberText)
  28. {
  29. this.date = date;
  30. this.isWeekend = isWeekend;
  31. this.isToday = isToday;
  32. this.isSelected = isSelected;
  33. this.isOtherMonth = isOtherMonth;
  34. this.dayNumberText = dayNumberText;
  35. }
  36. public DateTime Date
  37. {
  38. get
  39. {
  40. return date;
  41. }
  42. }
  43. public string DayNumberText
  44. {
  45. get
  46. {
  47. return dayNumberText;
  48. }
  49. }
  50. public bool IsOtherMonth
  51. {
  52. get
  53. {
  54. return isOtherMonth;
  55. }
  56. }
  57. public bool IsSelectable
  58. {
  59. get
  60. {
  61. return isSelectable;
  62. }
  63. set
  64. {
  65. isSelectable = value;
  66. }
  67. }
  68. public bool IsSelected
  69. {
  70. get
  71. {
  72. return isSelected;
  73. }
  74. set
  75. {
  76. isSelected = value;
  77. }
  78. }
  79. public bool IsToday
  80. {
  81. get
  82. {
  83. return isToday;
  84. }
  85. set
  86. {
  87. isToday = value;
  88. }
  89. }
  90. public bool IsWeekend
  91. {
  92. get
  93. {
  94. return isWeekend;
  95. }
  96. set
  97. {
  98. isWeekend = value;
  99. }
  100. }
  101. }
  102. }