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
- formatter.cs
- ServiceModelExtensionElement.cs
- ClientSideQueueItem.cs
- ByteArrayHelperWithString.cs
- GifBitmapDecoder.cs
- XmlSchemaImporter.cs
- SafeNativeMethods.cs
- KeyValuePairs.cs
- PriorityItem.cs
- SubpageParaClient.cs
- XmlSerializerSection.cs
- CalendarData.cs
- RankException.cs
- BaseCodePageEncoding.cs
- WinEventQueueItem.cs
- LayoutManager.cs
- UrlRoutingModule.cs
- DataPagerFieldCollection.cs
- HwndSource.cs
- ElementNotAvailableException.cs
- FocusTracker.cs
- BezierSegment.cs
- ColorContextHelper.cs
- RegisteredExpandoAttribute.cs
- DynamicMethod.cs
- TabRenderer.cs
- Math.cs
- OptionUsage.cs
- ColorTranslator.cs
- OLEDB_Util.cs
- ActivityUtilities.cs
- TransactionManager.cs
- XmlArrayAttribute.cs
- XpsFont.cs
- KeyedPriorityQueue.cs
- XmlTextAttribute.cs
- Keywords.cs
- WorkflowHostingResponseContext.cs
- ExpressionEditor.cs
- DoubleLinkListEnumerator.cs
- PbrsForward.cs
- XsdDuration.cs
- Stroke.cs
- DnsPermission.cs
- OdbcConnectionFactory.cs
- OAVariantLib.cs
- SpecialNameAttribute.cs
- SelectionProviderWrapper.cs
- SqlEnums.cs
- MimePart.cs
- ByteStreamGeometryContext.cs
- SqlCachedBuffer.cs
- FontSource.cs
- RegistryPermission.cs
- ITreeGenerator.cs
- DbMetaDataFactory.cs
- MeshGeometry3D.cs
- DesignerActionPropertyItem.cs
- DBCSCodePageEncoding.cs
- MemoryStream.cs
- AutomationPatternInfo.cs
- XslTransform.cs
- HttpModuleCollection.cs
- ResourceAttributes.cs
- XmlElementAttributes.cs
- XXXInfos.cs
- RenderingBiasValidation.cs
- SafeRightsManagementPubHandle.cs
- System.Data.OracleClient_BID.cs
- ResourceAttributes.cs
- XslAstAnalyzer.cs
- DictionarySectionHandler.cs
- Stylesheet.cs
- SafeBitVector32.cs
- NameGenerator.cs
- EncryptedKey.cs
- RewritingSimplifier.cs
- StatusBar.cs
- SessionStateModule.cs
- WebBrowser.cs
- FakeModelPropertyImpl.cs
- MachineKeySection.cs
- DynamicValidator.cs
- Stylesheet.cs
- RequestCachePolicy.cs
- ObfuscateAssemblyAttribute.cs
- PersonalizationProviderCollection.cs
- MemberPath.cs
- COAUTHIDENTITY.cs
- DetailsViewDesigner.cs
- SafePipeHandle.cs
- ListViewInsertedEventArgs.cs
- TdsValueSetter.cs
- TypeDependencyAttribute.cs
- ListViewInsertedEventArgs.cs
- DataMisalignedException.cs
- DataBindingExpressionBuilder.cs
- Pair.cs
- XsdCachingReader.cs
- ChannelCredentials.cs