Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WebForms / System / Web / UI / Design / TemplateEditingVerb.cs / 1 / TemplateEditingVerb.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.Design { using System; using System.Diagnostics; using System.ComponentModel; using System.ComponentModel.Design; ///[System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Demand, Flags=System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode)] [Obsolete("Use of this type is not recommended because template editing is handled in ControlDesigner. To support template editing expose template data in the TemplateGroups property and call SetViewFlags(ViewFlags.TemplateEditing, true). http://go.microsoft.com/fwlink/?linkid=14202")] public class TemplateEditingVerb : DesignerVerb, IDisposable { private static readonly EventHandler dummyEventHandler = new EventHandler(OnDummyEventHandler); private ITemplateEditingFrame editingFrame; private int index; /// public TemplateEditingVerb(string text, int index, TemplatedControlDesigner designer) : this(text, index, designer.TemplateEditingVerbHandler) { } public TemplateEditingVerb(string text, int index) : this(text, index, dummyEventHandler) { } private TemplateEditingVerb(string text, int index, EventHandler handler) : base(text, handler) { this.index = index; } internal ITemplateEditingFrame EditingFrame { get { return editingFrame; } set { editingFrame = value; } } /// public int Index { get { return index; } } /// public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } /// ~TemplateEditingVerb() { Dispose(false); } /// protected virtual void Dispose(bool disposing) { if (disposing) { if (editingFrame != null) { editingFrame.Dispose(); editingFrame = null; } } } private static void OnDummyEventHandler(object sender, EventArgs e) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DBNull.cs
- DataStorage.cs
- LayoutTableCell.cs
- PasswordTextNavigator.cs
- DataGridItem.cs
- XmlParserContext.cs
- ValidationErrorEventArgs.cs
- DataTableReader.cs
- MaterialCollection.cs
- AnimationClockResource.cs
- BasePattern.cs
- DataTableClearEvent.cs
- XmlReturnReader.cs
- ScriptingRoleServiceSection.cs
- ProtocolReflector.cs
- PropertyGroupDescription.cs
- BasePattern.cs
- GridViewCommandEventArgs.cs
- XPathSelectionIterator.cs
- RequestCache.cs
- FontStyles.cs
- _NegotiateClient.cs
- TokenizerHelper.cs
- StateMachine.cs
- ModelFactory.cs
- HandleCollector.cs
- MessagingDescriptionAttribute.cs
- CheckoutException.cs
- Completion.cs
- ThreadStaticAttribute.cs
- TableCell.cs
- CellTreeNode.cs
- GridViewItemAutomationPeer.cs
- IOException.cs
- AssemblyAttributesGoHere.cs
- DataRelation.cs
- MDIControlStrip.cs
- PerformanceCounterManager.cs
- PrintController.cs
- StaticContext.cs
- CommonDialog.cs
- ReadOnlyNameValueCollection.cs
- DocumentXPathNavigator.cs
- Property.cs
- PagePropertiesChangingEventArgs.cs
- ImageUrlEditor.cs
- GridView.cs
- MimeReflector.cs
- BufferedWebEventProvider.cs
- WebDisplayNameAttribute.cs
- NamespaceDecl.cs
- D3DImage.cs
- XmlSchemaAppInfo.cs
- TypeConverterAttribute.cs
- SoapEnumAttribute.cs
- ActivityDesignerLayoutSerializers.cs
- MetafileHeaderWmf.cs
- StatusBar.cs
- FilterQueryOptionExpression.cs
- CommonDialog.cs
- ReferentialConstraint.cs
- ListBoxDesigner.cs
- CollectionMarkupSerializer.cs
- ForeignKeyConstraint.cs
- BindToObject.cs
- TemplateBamlTreeBuilder.cs
- ControlTemplate.cs
- HostProtectionException.cs
- Unit.cs
- MatrixConverter.cs
- ScriptControlDescriptor.cs
- CustomExpression.cs
- KerberosTicketHashIdentifierClause.cs
- SqlNodeAnnotations.cs
- PropagatorResult.cs
- ToolBarTray.cs
- ControlBuilderAttribute.cs
- BamlWriter.cs
- UpdatePanelTriggerCollection.cs
- RequestBringIntoViewEventArgs.cs
- PackageStore.cs
- WebPartExportVerb.cs
- DataSourceExpression.cs
- ValidationException.cs
- DynamicExpression.cs
- PrimaryKeyTypeConverter.cs
- ColumnCollection.cs
- ResolveCriteriaApril2005.cs
- InlineCollection.cs
- DependencyPropertyKind.cs
- WpfKnownMemberInvoker.cs
- PerformanceCounterPermissionAttribute.cs
- COM2Properties.cs
- MetadataException.cs
- HandleTable.cs
- ExitEventArgs.cs
- VerificationAttribute.cs
- OleDbTransaction.cs
- WindowsScrollBarBits.cs
- DiscoveryMessageProperty.cs