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
- DataGridViewCellValidatingEventArgs.cs
- NodeFunctions.cs
- RemoteDebugger.cs
- ping.cs
- HashRepartitionStream.cs
- RijndaelManaged.cs
- TCPClient.cs
- InfiniteIntConverter.cs
- XmlComplianceUtil.cs
- HttpRequestTraceRecord.cs
- ErrorLog.cs
- ContextProperty.cs
- MetadataCacheItem.cs
- DataTrigger.cs
- ContentType.cs
- XmlKeywords.cs
- TextUtf8RawTextWriter.cs
- DeclarativeCatalogPart.cs
- BulletedList.cs
- MdImport.cs
- EnumerableCollectionView.cs
- InternalConfigSettingsFactory.cs
- EmissiveMaterial.cs
- FigureParaClient.cs
- AccessControlEntry.cs
- InvalidEnumArgumentException.cs
- AutomationPropertyInfo.cs
- IndexedString.cs
- RootProjectionNode.cs
- EncoderExceptionFallback.cs
- TextFindEngine.cs
- HyperLinkField.cs
- HGlobalSafeHandle.cs
- SecureEnvironment.cs
- RenderCapability.cs
- Propagator.JoinPropagator.cs
- XmlReaderSettings.cs
- lengthconverter.cs
- DefaultTextStore.cs
- AlphaSortedEnumConverter.cs
- SByteConverter.cs
- SqlRowUpdatedEvent.cs
- DesignBinding.cs
- UIElementHelper.cs
- PerformanceCountersElement.cs
- CommentAction.cs
- pingexception.cs
- TableStyle.cs
- GroupQuery.cs
- SqlDataSourceFilteringEventArgs.cs
- Rect3D.cs
- OdbcEnvironment.cs
- ArrayTypeMismatchException.cs
- XmlSchemaAttribute.cs
- SignedInfo.cs
- AsyncWaitHandle.cs
- HttpProfileGroupBase.cs
- Html32TextWriter.cs
- TextBounds.cs
- TextRangeEditLists.cs
- IEnumerable.cs
- CustomErrorsSection.cs
- RegexCaptureCollection.cs
- Baml2006ReaderSettings.cs
- TextParagraph.cs
- EntityDataSourceValidationException.cs
- ProxyAttribute.cs
- ChannelServices.cs
- MsmqInputSessionChannel.cs
- DataQuery.cs
- OledbConnectionStringbuilder.cs
- SystemIcmpV6Statistics.cs
- TypeUsageBuilder.cs
- XXXOnTypeBuilderInstantiation.cs
- AnimatedTypeHelpers.cs
- TdsParameterSetter.cs
- SmtpTransport.cs
- XPathDocumentIterator.cs
- DBSchemaRow.cs
- UpdateExpressionVisitor.cs
- GregorianCalendar.cs
- CompressionTracing.cs
- NativeMethods.cs
- SystemWebSectionGroup.cs
- TimeSpanValidatorAttribute.cs
- ProgressBarRenderer.cs
- CompilationLock.cs
- DetailsViewCommandEventArgs.cs
- TraceSwitch.cs
- ProfileService.cs
- EncodingNLS.cs
- HttpCacheVary.cs
- Italic.cs
- ResizeGrip.cs
- SerializerProvider.cs
- SpStreamWrapper.cs
- PropertyPathWorker.cs
- FileSystemWatcher.cs
- RoutedEventValueSerializer.cs
- ReflectTypeDescriptionProvider.cs