Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / MIT / System / Web / UI / MobileControls / Design / CalendarDesigner.cs / 1305376 / CalendarDesigner.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.Design.MobileControls { using System; using System.ComponentModel; using System.Diagnostics; using System.IO; using System.Reflection; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.MobileControls.Adapters; using System.Web.UI.Design.MobileControls.Adapters; ////// ////// Provides a designer for the ////// control. /// [ System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Demand, Flags=System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode) ] [Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")] internal class CalendarDesigner : MobileControlDesigner { private System.Web.UI.MobileControls.Calendar _calendar; /// /// /// /// The control element for design. /// ////// Initializes the designer with the component for design. /// ////// ////// This is called by the designer host to establish the component for /// design. /// ///public override void Initialize(IComponent component) { Debug.Assert(component is System.Web.UI.MobileControls.Calendar, "CalendarDesigner.Initialize - Invalid Calendar Control"); _calendar = (System.Web.UI.MobileControls.Calendar) component; base.Initialize(component); } /// /// ////// Returns the design-time HTML of the ////// mobile control /// /// ////// The HTML of the control. /// ///protected override String GetDesignTimeNormalHtml() { DesignerTextWriter tw = new DesignerTextWriter(); _calendar.Adapter.Render(tw); return tw.ToString(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.Design.MobileControls { using System; using System.ComponentModel; using System.Diagnostics; using System.IO; using System.Reflection; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.MobileControls.Adapters; using System.Web.UI.Design.MobileControls.Adapters; ////// ////// Provides a designer for the ////// control. /// [ System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Demand, Flags=System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode) ] [Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")] internal class CalendarDesigner : MobileControlDesigner { private System.Web.UI.MobileControls.Calendar _calendar; /// /// /// /// The control element for design. /// ////// Initializes the designer with the component for design. /// ////// ////// This is called by the designer host to establish the component for /// design. /// ///public override void Initialize(IComponent component) { Debug.Assert(component is System.Web.UI.MobileControls.Calendar, "CalendarDesigner.Initialize - Invalid Calendar Control"); _calendar = (System.Web.UI.MobileControls.Calendar) component; base.Initialize(component); } /// /// ////// Returns the design-time HTML of the ////// mobile control /// /// ////// The HTML of the control. /// ///protected override String GetDesignTimeNormalHtml() { DesignerTextWriter tw = new DesignerTextWriter(); _calendar.Adapter.Render(tw); return tw.ToString(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BackStopAuthenticationModule.cs
- FlagsAttribute.cs
- BaseTemplateParser.cs
- DecoderBestFitFallback.cs
- BoundField.cs
- BooleanStorage.cs
- QualificationDataItem.cs
- UserInitiatedNavigationPermission.cs
- Ray3DHitTestResult.cs
- GridToolTip.cs
- EntityDataSourceSelectedEventArgs.cs
- AttributeXamlType.cs
- HtmlTableCell.cs
- DataGridViewCellStyleConverter.cs
- ValueConversionAttribute.cs
- XdrBuilder.cs
- BamlLocalizableResourceKey.cs
- RSAOAEPKeyExchangeDeformatter.cs
- Queue.cs
- ObjectViewQueryResultData.cs
- EventTrigger.cs
- XmlDataCollection.cs
- UserNamePasswordValidator.cs
- BCLDebug.cs
- OdbcDataAdapter.cs
- XamlValidatingReader.cs
- X509UI.cs
- GlobalizationAssembly.cs
- SoapExtensionReflector.cs
- UserNamePasswordServiceCredential.cs
- RenameRuleObjectDialog.Designer.cs
- DeclaredTypeValidatorAttribute.cs
- TcpClientChannel.cs
- TreeIterator.cs
- LinkArea.cs
- TemplateManager.cs
- HScrollBar.cs
- ClientBuildManagerCallback.cs
- XmlSchemaObject.cs
- CollectionEditorDialog.cs
- FormCollection.cs
- EntityProviderServices.cs
- ConfigXmlComment.cs
- ProvidersHelper.cs
- ForeignKeyConstraint.cs
- BitmapCacheBrush.cs
- __ComObject.cs
- UInt64.cs
- TypeElementCollection.cs
- httpstaticobjectscollection.cs
- Compiler.cs
- ListViewDeleteEventArgs.cs
- BuilderPropertyEntry.cs
- _NegoStream.cs
- XmlElementAttribute.cs
- DoubleConverter.cs
- OraclePermission.cs
- SimpleHandlerBuildProvider.cs
- XmlSchemaValidationException.cs
- ThreadExceptionDialog.cs
- RSAPKCS1KeyExchangeFormatter.cs
- ChannelRequirements.cs
- FileDataSourceCache.cs
- ExpressionBindingCollection.cs
- EventLogPropertySelector.cs
- Converter.cs
- ToolStripMenuItemCodeDomSerializer.cs
- HttpRuntime.cs
- LayoutEditorPart.cs
- TrackPoint.cs
- DataTemplate.cs
- CharUnicodeInfo.cs
- EdmFunctions.cs
- LinkLabel.cs
- OutputCacheSettings.cs
- FollowerQueueCreator.cs
- TemplateFactory.cs
- Marshal.cs
- SparseMemoryStream.cs
- BasicKeyConstraint.cs
- HyperLinkColumn.cs
- Subset.cs
- IPeerNeighbor.cs
- Single.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- CommandBindingCollection.cs
- ConstraintEnumerator.cs
- Function.cs
- MetadataArtifactLoaderCompositeFile.cs
- GeometryGroup.cs
- precedingquery.cs
- ResourceReferenceExpressionConverter.cs
- TypeConverterHelper.cs
- Transform.cs
- MetadataStore.cs
- ListControlStringCollectionEditor.cs
- LongTypeConverter.cs
- XPathChildIterator.cs
- SiteIdentityPermission.cs
- XmlText.cs