Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / WebControls / CalendarDay.cs / 1 / CalendarDay.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI.WebControls {
using System.ComponentModel;
using System;
using System.Security.Permissions;
///
/// Represents a calendar day.
///
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public class CalendarDay {
private DateTime date;
private bool isSelectable;
private bool isToday;
private bool isWeekend;
private bool isOtherMonth;
private bool isSelected;
private string dayNumberText;
///
/// [To be supplied.]
///
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;
}
///
/// Gets the date represented by an instance of this class. This
/// property is read-only.
///
public DateTime Date {
get {
return date;
}
}
///
/// Gets the string equivilent of the date represented by an instance of this class. This property is read-only.
///
public string DayNumberText {
get {
return dayNumberText;
}
}
///
/// 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.
///
public bool IsOtherMonth {
get {
return isOtherMonth;
}
}
///
/// Gets or sets a value indicating whether the date represented
/// by an instance of
/// this class can be selected.
///
public bool IsSelectable {
get {
return isSelectable;
}
set {
isSelectable = value;
}
}
///
/// Gets a value indicating whether date represented by an instance of this class is selected. This property is read-only.
///
public bool IsSelected {
get {
return isSelected;
}
}
///
/// Gets a value indicating whether the date represented by an instance of this class is today's date. This property is read-only.
///
public bool IsToday {
get {
return isToday;
}
}
///
/// Gets a value indicating whether the date represented by an instance of
/// this class is on a weekend day. This property is read-only.
///
public bool IsWeekend {
get {
return isWeekend;
}
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WindowsFormsLinkLabel.cs
- OracleCommandBuilder.cs
- ResXBuildProvider.cs
- GACIdentityPermission.cs
- XmlSerializerAssemblyAttribute.cs
- MediaEntryAttribute.cs
- ListView.cs
- SecurityContextSecurityTokenParameters.cs
- IgnoreFlushAndCloseStream.cs
- Win32.cs
- CapabilitiesUse.cs
- ByteViewer.cs
- DynamicQueryableWrapper.cs
- WebPartEditorCancelVerb.cs
- WebServiceClientProxyGenerator.cs
- ProfilePropertySettingsCollection.cs
- HyperLinkColumn.cs
- OleDbTransaction.cs
- MinimizableAttributeTypeConverter.cs
- HierarchicalDataBoundControl.cs
- HeaderUtility.cs
- CodeMethodInvokeExpression.cs
- CallbackValidator.cs
- CodeExpressionStatement.cs
- WebBrowserHelper.cs
- KnownTypes.cs
- SerializationSectionGroup.cs
- SessionState.cs
- baseaxisquery.cs
- ButtonBaseDesigner.cs
- AppSettingsSection.cs
- SessionStateContainer.cs
- FileDialog.cs
- FlowLayoutPanel.cs
- OutputCacheSection.cs
- PaperSize.cs
- MarshalByRefObject.cs
- ResXResourceReader.cs
- ListControlDesigner.cs
- FaultReason.cs
- DomainConstraint.cs
- JoinGraph.cs
- ChineseLunisolarCalendar.cs
- PreservationFileWriter.cs
- BounceEase.cs
- TimelineGroup.cs
- Int32AnimationUsingKeyFrames.cs
- HotSpot.cs
- HeaderCollection.cs
- EventLogPermissionAttribute.cs
- NameValueCollection.cs
- Trace.cs
- XamlPointCollectionSerializer.cs
- SimpleWorkerRequest.cs
- BooleanFunctions.cs
- ClientType.cs
- Translator.cs
- DomainLiteralReader.cs
- DataSourceListEditor.cs
- SqlNodeTypeOperators.cs
- ControlHelper.cs
- DecimalConstantAttribute.cs
- PerformanceCountersElement.cs
- RangeContentEnumerator.cs
- TextEditorDragDrop.cs
- MessageBuilder.cs
- StrokeSerializer.cs
- EventLogPermissionAttribute.cs
- OdbcDataReader.cs
- WpfKnownMemberInvoker.cs
- LogPolicy.cs
- HotSpotCollection.cs
- ParallelTimeline.cs
- _emptywebproxy.cs
- XamlClipboardData.cs
- DesignerImageAdapter.cs
- IOThreadScheduler.cs
- util.cs
- MouseDevice.cs
- XmlSortKeyAccumulator.cs
- dataSvcMapFileLoader.cs
- CompilerError.cs
- EndEvent.cs
- EntityDataSourceViewSchema.cs
- Base64Stream.cs
- HttpCapabilitiesBase.cs
- TargetInvocationException.cs
- TreeViewImageIndexConverter.cs
- DecoderExceptionFallback.cs
- FirewallWrapper.cs
- VisualStyleElement.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- ViewPort3D.cs
- HttpBrowserCapabilitiesBase.cs
- Win32.cs
- TrustSection.cs
- XmlArrayItemAttributes.cs
- CaseInsensitiveHashCodeProvider.cs
- TraceFilter.cs
- XmlBoundElement.cs