CalendarDay.cs 1.7 KB

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