Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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; ////// [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; ///Represents a calendar day. ////// 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; } ///[To be supplied.] ////// public DateTime Date { get { return date; } } ///Gets the date represented by an instance of this class. This /// property is read-only. ////// public string DayNumberText { get { return dayNumberText; } } ///Gets the string equivilent of the date represented by an instance of this class. This property is read-only. ////// public bool IsOtherMonth { get { return isOtherMonth; } } ///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 IsSelectable { get { return isSelectable; } set { isSelectable = value; } } ///Gets or sets a value indicating whether the date represented /// by an instance of /// this class can be selected. ////// public bool IsSelected { get { return isSelected; } } ///Gets a value indicating whether date represented by an instance of this class is selected. 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 today's date. This property is read-only. ////// public bool IsWeekend { get { return isWeekend; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ //Gets a value indicating whether the date represented by an instance of /// this class is on a weekend day. This property is read-only. ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System.ComponentModel; using System; using System.Security.Permissions; ////// [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; ///Represents a calendar day. ////// 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; } ///[To be supplied.] ////// public DateTime Date { get { return date; } } ///Gets the date represented by an instance of this class. This /// property is read-only. ////// public string DayNumberText { get { return dayNumberText; } } ///Gets the string equivilent of the date represented by an instance of this class. This property is read-only. ////// public bool IsOtherMonth { get { return isOtherMonth; } } ///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 IsSelectable { get { return isSelectable; } set { isSelectable = value; } } ///Gets or sets a value indicating whether the date represented /// by an instance of /// this class can be selected. ////// public bool IsSelected { get { return isSelected; } } ///Gets a value indicating whether date represented by an instance of this class is selected. 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 today's date. This property is read-only. ////// public bool IsWeekend { get { return isWeekend; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.Gets a value indicating whether the date represented by an instance of /// this class is on a weekend day. This property is read-only. ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TrackingRecordPreFilter.cs
- CompoundFileDeflateTransform.cs
- StorageEntitySetMapping.cs
- FtpCachePolicyElement.cs
- MailWriter.cs
- DataGridViewSelectedCellCollection.cs
- UnsafeMethods.cs
- WmpBitmapDecoder.cs
- SiteIdentityPermission.cs
- MessageBox.cs
- BooleanAnimationUsingKeyFrames.cs
- DataGridViewCellValidatingEventArgs.cs
- SslStreamSecurityUpgradeProvider.cs
- WebPartManagerInternals.cs
- IndependentAnimationStorage.cs
- MemoryMappedView.cs
- DataGridViewCellConverter.cs
- TransformPattern.cs
- GroupStyle.cs
- MouseDevice.cs
- PolyBezierSegmentFigureLogic.cs
- UniqueEventHelper.cs
- PeerNameRecord.cs
- XmlSchemaType.cs
- ButtonChrome.cs
- DateTimePicker.cs
- HttpListenerResponse.cs
- Context.cs
- Types.cs
- DependencyObjectType.cs
- JournalEntry.cs
- UnsafeNativeMethods.cs
- EndpointDiscoveryMetadata.cs
- Line.cs
- MessageQueueException.cs
- OutArgumentConverter.cs
- TextEditorTables.cs
- EncoderParameter.cs
- DynamicPropertyHolder.cs
- RelatedCurrencyManager.cs
- Material.cs
- StrongNameMembershipCondition.cs
- SerializationEventsCache.cs
- Drawing.cs
- SizeFConverter.cs
- WindowsImpersonationContext.cs
- SharedPersonalizationStateInfo.cs
- PropertyInformationCollection.cs
- QilNode.cs
- _Win32.cs
- ChildChangedEventArgs.cs
- Rotation3D.cs
- RelativeSource.cs
- BaseCollection.cs
- ThemeDictionaryExtension.cs
- XmlSchemaType.cs
- ProviderUtil.cs
- TabletCollection.cs
- TagPrefixInfo.cs
- ResourceReferenceExpression.cs
- WindowsListViewGroupHelper.cs
- TextBox.cs
- TypePresenter.xaml.cs
- ProfileSection.cs
- LineInfo.cs
- ModelItemCollection.cs
- TileBrush.cs
- Int64Animation.cs
- StoreItemCollection.cs
- URLIdentityPermission.cs
- ConfigXmlCDataSection.cs
- XmlSchemaAttributeGroupRef.cs
- MethodBuilder.cs
- CodeCompileUnit.cs
- PolyBezierSegmentFigureLogic.cs
- RequestCacheEntry.cs
- shaperfactoryquerycacheentry.cs
- Query.cs
- PixelFormats.cs
- IisTraceListener.cs
- _StreamFramer.cs
- SelectedDatesCollection.cs
- DuplexSecurityProtocolFactory.cs
- PageBuildProvider.cs
- ChannelProtectionRequirements.cs
- KeySpline.cs
- SecurityElement.cs
- SchemaLookupTable.cs
- SqlMethods.cs
- WebServiceClientProxyGenerator.cs
- GenerateScriptTypeAttribute.cs
- MatrixAnimationUsingPath.cs
- ProfileGroupSettingsCollection.cs
- ChannelFactory.cs
- TextParagraphView.cs
- WorkflowMarkupSerializer.cs
- PolyLineSegment.cs
- PieceNameHelper.cs
- ResourceIDHelper.cs
- DotNetATv1WindowsLogEntryDeserializer.cs