Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / MIT / System / Web / UI / MobileControls / Design / TableFieldsEditor.cs / 1305376 / TableFieldsEditor.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.Design.MobileControls { using System; using System.ComponentModel; using System.ComponentModel.Design; using System.Diagnostics; using System.Drawing.Design; using System.Web.UI.MobileControls; ////// [ 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 TableFieldsEditor : MobileUITypeEditor { ////// The editor for column collections. /// ////// /// /// An/// Edits the value specified. /// ///that specifies the context of the value to edit. /// /// /// An . /// /// /// The object to edit. /// /// /// public override Object EditValue(ITypeDescriptorContext context, IServiceProvider provider, Object value) { Debug.Assert(context != null); ObjectList objectList = context.Instance as ObjectList; Debug.Assert(objectList != null); ObjectListDesigner designer = GetDesigner(context) as ObjectListDesigner; Debug.Assert(designer != null); designer.InvokePropertyBuilder(ObjectListComponentEditor.IDX_GENERAL); return objectList.TableFields; } public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext context) { // Disable the ... button in multi-selected case. if (context.Instance is ObjectList) { return base.GetEditStyle(context); } return UITypeEditorEditStyle.None; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// The updated value. /// ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.Design.MobileControls { using System; using System.ComponentModel; using System.ComponentModel.Design; using System.Diagnostics; using System.Drawing.Design; using System.Web.UI.MobileControls; ////// [ 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 TableFieldsEditor : MobileUITypeEditor { ////// The editor for column collections. /// ////// /// /// An/// Edits the value specified. /// ///that specifies the context of the value to edit. /// /// /// An . /// /// /// The object to edit. /// /// /// public override Object EditValue(ITypeDescriptorContext context, IServiceProvider provider, Object value) { Debug.Assert(context != null); ObjectList objectList = context.Instance as ObjectList; Debug.Assert(objectList != null); ObjectListDesigner designer = GetDesigner(context) as ObjectListDesigner; Debug.Assert(designer != null); designer.InvokePropertyBuilder(ObjectListComponentEditor.IDX_GENERAL); return objectList.TableFields; } public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext context) { // Disable the ... button in multi-selected case. if (context.Instance is ObjectList) { return base.GetEditStyle(context); } return UITypeEditorEditStyle.None; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// The updated value. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- NavigatorInvalidBodyAccessException.cs
- TypeReference.cs
- InternalBase.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- ConfigurationSchemaErrors.cs
- RuntimeVariableList.cs
- KeyToListMap.cs
- TextRunCache.cs
- StrokeIntersection.cs
- FlowLayoutSettings.cs
- RegisteredHiddenField.cs
- JsonReader.cs
- TagMapInfo.cs
- Restrictions.cs
- OleStrCAMarshaler.cs
- ClientType.cs
- FormsAuthenticationEventArgs.cs
- LabelLiteral.cs
- Page.cs
- NumberSubstitution.cs
- CodeDOMUtility.cs
- Missing.cs
- EventRecord.cs
- GenericEnumerator.cs
- Variant.cs
- CodeDomConfigurationHandler.cs
- HMACSHA256.cs
- BamlRecords.cs
- ListControlConvertEventArgs.cs
- LayoutDump.cs
- sqlpipe.cs
- MimeReturn.cs
- DataSourceHelper.cs
- BitmapFrameEncode.cs
- ServiceModelEnhancedConfigurationElementCollection.cs
- DBCommandBuilder.cs
- TextFormatter.cs
- XmlWriterTraceListener.cs
- TableLayoutStyle.cs
- ErrorWrapper.cs
- CheckBoxList.cs
- AsyncSerializedWorker.cs
- LogEntryHeaderv1Deserializer.cs
- CreateUserWizardStep.cs
- ClientReliableChannelBinder.cs
- KeyedHashAlgorithm.cs
- DropSource.cs
- FastEncoderStatics.cs
- MessageFilterException.cs
- InternalRelationshipCollection.cs
- _ChunkParse.cs
- UnmanagedBitmapWrapper.cs
- Expressions.cs
- CanonicalXml.cs
- CodeTypeOfExpression.cs
- JpegBitmapDecoder.cs
- BeginStoryboard.cs
- HitTestWithGeometryDrawingContextWalker.cs
- Encoding.cs
- CollectionViewProxy.cs
- AddressHeaderCollectionElement.cs
- DynamicObject.cs
- ExecutionProperties.cs
- DrawListViewSubItemEventArgs.cs
- OperatingSystemVersionCheck.cs
- UidManager.cs
- DateTimeValueSerializerContext.cs
- QueryStringParameter.cs
- EdmFunctionAttribute.cs
- HwndKeyboardInputProvider.cs
- Util.cs
- httpapplicationstate.cs
- DebugView.cs
- TabControlEvent.cs
- XmlTextEncoder.cs
- BatchParser.cs
- ExpressionBuilderCollection.cs
- oledbconnectionstring.cs
- ListParaClient.cs
- Viewport2DVisual3D.cs
- DataGridViewCellLinkedList.cs
- WindowsIdentity.cs
- RawUIStateInputReport.cs
- VarInfo.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- AxHostDesigner.cs
- KeySpline.cs
- HtmlAnchor.cs
- Attributes.cs
- BitArray.cs
- SID.cs
- UriTemplateTableMatchCandidate.cs
- StrongNameUtility.cs
- PrintDialog.cs
- TextEditorDragDrop.cs
- EditBehavior.cs
- DockEditor.cs
- XmlAutoDetectWriter.cs
- SqlSupersetValidator.cs
- Serializer.cs