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
- ConditionalExpression.cs
- ScriptMethodAttribute.cs
- UnsafeNativeMethods.cs
- PropertyEmitterBase.cs
- ImageListStreamer.cs
- RegionInfo.cs
- ExpressionNode.cs
- NamedPipeProcessProtocolHandler.cs
- SqlRowUpdatedEvent.cs
- TextEffectCollection.cs
- HtmlInputHidden.cs
- Invariant.cs
- GridToolTip.cs
- CatchBlock.cs
- SiteMapPath.cs
- SelectorAutomationPeer.cs
- XmlAttributeCollection.cs
- HttpDebugHandler.cs
- CryptoConfig.cs
- XmlSerializerOperationFormatter.cs
- DateTime.cs
- TemplatePropertyEntry.cs
- LocalFileSettingsProvider.cs
- ArgumentNullException.cs
- BinaryParser.cs
- COM2Enum.cs
- NavigationService.cs
- EventLogPermissionEntryCollection.cs
- MouseEventArgs.cs
- DetailsViewUpdatedEventArgs.cs
- CommandBindingCollection.cs
- SqlErrorCollection.cs
- BlobPersonalizationState.cs
- COM2PropertyBuilderUITypeEditor.cs
- CodeLabeledStatement.cs
- CellQuery.cs
- AssemblyHash.cs
- Main.cs
- X509Certificate.cs
- ReferenceSchema.cs
- HitTestWithPointDrawingContextWalker.cs
- PagedDataSource.cs
- QueryGenerator.cs
- TransactionOptions.cs
- XmlSchemaInfo.cs
- UndoEngine.cs
- ClientUIRequest.cs
- Constraint.cs
- XPathBuilder.cs
- XmlCDATASection.cs
- Publisher.cs
- MarkupObject.cs
- CollectionEditorDialog.cs
- SerialReceived.cs
- Profiler.cs
- GetIndexBinder.cs
- ExpandCollapseProviderWrapper.cs
- CustomValidator.cs
- Transform3DCollection.cs
- FileDialogCustomPlace.cs
- ToolStripScrollButton.cs
- ChtmlTextWriter.cs
- IgnoreFileBuildProvider.cs
- ToolStripSeparatorRenderEventArgs.cs
- SignHashRequest.cs
- SplayTreeNode.cs
- Translator.cs
- StoreContentChangedEventArgs.cs
- XamlSerializerUtil.cs
- CodeTypeDelegate.cs
- TemplateKeyConverter.cs
- ModuleConfigurationInfo.cs
- Vector3DCollectionConverter.cs
- CollectionViewGroupRoot.cs
- XappLauncher.cs
- SelectionRangeConverter.cs
- ClassData.cs
- Control.cs
- XPathNavigatorException.cs
- StructuredType.cs
- _FixedSizeReader.cs
- _ListenerResponseStream.cs
- Action.cs
- ContentWrapperAttribute.cs
- ParameterBuilder.cs
- ReferentialConstraintRoleElement.cs
- GrammarBuilderDictation.cs
- RefreshEventArgs.cs
- MailBnfHelper.cs
- EmptyQuery.cs
- RtfNavigator.cs
- Message.cs
- ServiceModelExtensionCollectionElement.cs
- ParallelActivityDesigner.cs
- CachedPathData.cs
- ListBoxItemWrapperAutomationPeer.cs
- ProcessHostFactoryHelper.cs
- XmlSignificantWhitespace.cs
- _ListenerRequestStream.cs
- XmlSchemaGroupRef.cs