CalendarDay.cs 1.6 KB

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