Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / Design / ActiveDocumentEvent.cs / 1305376 / ActiveDocumentEvent.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel.Design { using System; using System.ComponentModel; using System.Diagnostics; using System.Security.Permissions; using Microsoft.Win32; ////// [HostProtection(SharedState = true)] [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.InheritanceDemand, Name="FullTrust")] [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Name="FullTrust")] public class ActiveDesignerEventArgs : EventArgs { ///Provides data for the ////// event. /// The document that is losing activation. /// private readonly IDesignerHost oldDesigner; ////// The document that is gaining activation. /// private readonly IDesignerHost newDesigner; ////// public ActiveDesignerEventArgs(IDesignerHost oldDesigner, IDesignerHost newDesigner) { this.oldDesigner = oldDesigner; this.newDesigner = newDesigner; } ///Initializes a new instance of the ////// class. /// public IDesignerHost OldDesigner { get { return oldDesigner; } } ////// Gets or /// sets the document that is losing activation. /// ////// public IDesignerHost NewDesigner { get { return newDesigner; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// Gets or /// sets the document that is gaining activation. /// ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel.Design { using System; using System.ComponentModel; using System.Diagnostics; using System.Security.Permissions; using Microsoft.Win32; ////// [HostProtection(SharedState = true)] [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.InheritanceDemand, Name="FullTrust")] [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Name="FullTrust")] public class ActiveDesignerEventArgs : EventArgs { ///Provides data for the ////// event. /// The document that is losing activation. /// private readonly IDesignerHost oldDesigner; ////// The document that is gaining activation. /// private readonly IDesignerHost newDesigner; ////// public ActiveDesignerEventArgs(IDesignerHost oldDesigner, IDesignerHost newDesigner) { this.oldDesigner = oldDesigner; this.newDesigner = newDesigner; } ///Initializes a new instance of the ////// class. /// public IDesignerHost OldDesigner { get { return oldDesigner; } } ////// Gets or /// sets the document that is losing activation. /// ////// public IDesignerHost NewDesigner { get { return newDesigner; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// Gets or /// sets the document that is gaining activation. /// ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FormViewDeleteEventArgs.cs
- XamlPathDataSerializer.cs
- DiscoveryEndpointElement.cs
- TextTreeRootTextBlock.cs
- StrokeCollection2.cs
- SingleKeyFrameCollection.cs
- Codec.cs
- RowCache.cs
- ValidatingPropertiesEventArgs.cs
- SqlDataSourceAdvancedOptionsForm.cs
- PageSetupDialog.cs
- DependencyProperty.cs
- PropertyValueChangedEvent.cs
- TextInfo.cs
- OracleFactory.cs
- DisplayNameAttribute.cs
- WebServiceErrorEvent.cs
- Timer.cs
- DataBinding.cs
- RegistryKey.cs
- LinkAreaEditor.cs
- PointConverter.cs
- XmlDomTextWriter.cs
- SrgsToken.cs
- StorageInfo.cs
- PropertyStore.cs
- TemplatePropertyEntry.cs
- PolygonHotSpot.cs
- BackStopAuthenticationModule.cs
- ListViewItem.cs
- ZipIOLocalFileDataDescriptor.cs
- Animatable.cs
- CodeThrowExceptionStatement.cs
- TextEffectResolver.cs
- RemotingSurrogateSelector.cs
- TextRangeEditTables.cs
- DesigntimeLicenseContextSerializer.cs
- WCFBuildProvider.cs
- MutexSecurity.cs
- ImageButton.cs
- BindToObject.cs
- AttributeProviderAttribute.cs
- HtmlInputControl.cs
- KnownTypes.cs
- HandleRef.cs
- DbConnectionPool.cs
- PassportAuthentication.cs
- WmlPageAdapter.cs
- KeyboardEventArgs.cs
- XPathDocumentIterator.cs
- StringStorage.cs
- CatalogPartCollection.cs
- ColumnBinding.cs
- NetworkInterface.cs
- HttpModuleActionCollection.cs
- FieldCollectionEditor.cs
- Directory.cs
- sqlnorm.cs
- XmlAnyElementAttribute.cs
- Polygon.cs
- DataGridViewRowHeaderCell.cs
- PenThreadWorker.cs
- thaishape.cs
- TypeDescriptionProviderAttribute.cs
- MemoryRecordBuffer.cs
- HealthMonitoringSection.cs
- TypeLoadException.cs
- JsonReaderWriterFactory.cs
- RangeValidator.cs
- RequiredFieldValidator.cs
- Property.cs
- NumberFormatInfo.cs
- MenuTracker.cs
- ContextBase.cs
- Material.cs
- SystemTcpConnection.cs
- ConnectionManagementElement.cs
- MetadataWorkspace.cs
- PermissionToken.cs
- versioninfo.cs
- WorkItem.cs
- ErrorInfoXmlDocument.cs
- SafeBitVector32.cs
- DoubleKeyFrameCollection.cs
- InheritanceUI.cs
- SecurityHelper.cs
- TriState.cs
- XPathCompileException.cs
- GridViewColumnCollection.cs
- QuaternionIndependentAnimationStorage.cs
- EntryPointNotFoundException.cs
- DocumentPageView.cs
- thaishape.cs
- DebugHandleTracker.cs
- TcpWorkerProcess.cs
- XmlSchemaSimpleContentRestriction.cs
- NameTable.cs
- TileModeValidation.cs
- BitmapInitialize.cs
- CompositionCommandSet.cs