mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-19 01:31:17 -10:00
Adding reference source for System.Data System.Data.DataSetExtensions System.Data.Entity System.Data.Entity.Design System.Data.Linq System.Data.SqlXml System.ServiceModel System.ServiceModel.Activation System.ServiceModel.Activities System.ServiceModel.Channels System.ServiceModel.Discovery System.ServiceModel.Internals System.ServiceModel.Routing System.ServiceModel.WasHosting System.ServiceModel.Web System.Web System.Web.ApplicationServices System.Web.DynamicData System.Web.Entity System.Web.Entity.Design System.Web.Extensions System.Web.Mobile System.Web.Routing System.Web.Services System.Xml System.Xml.Linq
120 lines
3.5 KiB
C#
120 lines
3.5 KiB
C#
//------------------------------------------------------------------------------
|
|
// <copyright file="CalendarDay.cs" company="Microsoft">
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// </copyright>
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace System.Web.UI.WebControls {
|
|
using System.ComponentModel;
|
|
|
|
using System;
|
|
|
|
|
|
/// <devdoc>
|
|
/// <para> Represents a calendar day.</para>
|
|
/// </devdoc>
|
|
public class CalendarDay {
|
|
private DateTime date;
|
|
private bool isSelectable;
|
|
private bool isToday;
|
|
private bool isWeekend;
|
|
private bool isOtherMonth;
|
|
private bool isSelected;
|
|
private string dayNumberText;
|
|
|
|
|
|
/// <devdoc>
|
|
/// <para>[To be supplied.]</para>
|
|
/// </devdoc>
|
|
public CalendarDay(DateTime date, bool isWeekend, bool isToday, bool isSelected, bool isOtherMonth, string dayNumberText) {
|
|
this.date = date;
|
|
this.isWeekend = isWeekend;
|
|
this.isToday = isToday;
|
|
this.isOtherMonth = isOtherMonth;
|
|
this.isSelected = isSelected;
|
|
this.dayNumberText = dayNumberText;
|
|
}
|
|
|
|
|
|
/// <devdoc>
|
|
/// <para> Gets the date represented by an instance of this class. This
|
|
/// property is read-only.</para>
|
|
/// </devdoc>
|
|
public DateTime Date {
|
|
get {
|
|
return date;
|
|
}
|
|
}
|
|
|
|
|
|
/// <devdoc>
|
|
/// <para>Gets the string equivilent of the date represented by an instance of this class. This property is read-only.</para>
|
|
/// </devdoc>
|
|
public string DayNumberText {
|
|
get {
|
|
return dayNumberText;
|
|
}
|
|
}
|
|
|
|
|
|
/// <devdoc>
|
|
/// <para>Gets a value indicating whether the date represented by an instance of
|
|
/// this class is in a different month from the month currently being displayed. This
|
|
/// property is read-only.</para>
|
|
/// </devdoc>
|
|
public bool IsOtherMonth {
|
|
get {
|
|
return isOtherMonth;
|
|
}
|
|
}
|
|
|
|
|
|
/// <devdoc>
|
|
/// <para>Gets or sets a value indicating whether the date represented
|
|
/// by an instance of
|
|
/// this class can be selected.</para>
|
|
/// </devdoc>
|
|
public bool IsSelectable {
|
|
get {
|
|
return isSelectable;
|
|
}
|
|
set {
|
|
isSelectable = value;
|
|
}
|
|
}
|
|
|
|
|
|
/// <devdoc>
|
|
/// <para> Gets a value indicating whether date represented by an instance of this class is selected. This property is read-only.</para>
|
|
/// </devdoc>
|
|
public bool IsSelected {
|
|
get {
|
|
return isSelected;
|
|
}
|
|
}
|
|
|
|
|
|
/// <devdoc>
|
|
/// <para>Gets a value indicating whether the date represented by an instance of this class is today's date. This property is read-only.</para>
|
|
/// </devdoc>
|
|
public bool IsToday {
|
|
get {
|
|
return isToday;
|
|
}
|
|
}
|
|
|
|
|
|
/// <devdoc>
|
|
/// <para>Gets a value indicating whether the date represented by an instance of
|
|
/// this class is on a weekend day. This property is read-only.</para>
|
|
/// </devdoc>
|
|
public bool IsWeekend {
|
|
get {
|
|
return isWeekend;
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
|