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;
///
/// Provides data for the
/// event.
///
[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 {
///
/// The document that is losing activation.
///
private readonly IDesignerHost oldDesigner;
///
/// The document that is gaining activation.
///
private readonly IDesignerHost newDesigner;
///
/// Initializes a new instance of the
/// class.
///
public ActiveDesignerEventArgs(IDesignerHost oldDesigner, IDesignerHost newDesigner) {
this.oldDesigner = oldDesigner;
this.newDesigner = newDesigner;
}
///
///
/// Gets or
/// sets the document that is losing activation.
///
///
public IDesignerHost OldDesigner {
get {
return oldDesigner;
}
}
///
///
/// Gets or
/// sets the document that is gaining activation.
///
///
public IDesignerHost NewDesigner {
get {
return newDesigner;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// 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;
///
/// Provides data for the
/// event.
///
[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 {
///
/// The document that is losing activation.
///
private readonly IDesignerHost oldDesigner;
///
/// The document that is gaining activation.
///
private readonly IDesignerHost newDesigner;
///
/// Initializes a new instance of the
/// class.
///
public ActiveDesignerEventArgs(IDesignerHost oldDesigner, IDesignerHost newDesigner) {
this.oldDesigner = oldDesigner;
this.newDesigner = newDesigner;
}
///
///
/// Gets or
/// sets the document that is losing activation.
///
///
public IDesignerHost OldDesigner {
get {
return oldDesigner;
}
}
///
///
/// Gets or
/// sets the document that is gaining activation.
///
///
public IDesignerHost NewDesigner {
get {
return newDesigner;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TemplateInstanceAttribute.cs
- _NetRes.cs
- StateBag.cs
- Single.cs
- _HelperAsyncResults.cs
- CodeDefaultValueExpression.cs
- SoapExtensionStream.cs
- ProvidersHelper.cs
- CheckedPointers.cs
- EventLevel.cs
- TransformerInfoCollection.cs
- Rectangle.cs
- RadioButtonFlatAdapter.cs
- MouseButton.cs
- AnonymousIdentificationModule.cs
- SaveFileDialog.cs
- ReadOnlyNameValueCollection.cs
- OdbcInfoMessageEvent.cs
- WebPartUtil.cs
- WebPartConnectionsConfigureVerb.cs
- EntityContainerEntitySetDefiningQuery.cs
- DataControlImageButton.cs
- _AutoWebProxyScriptEngine.cs
- EventProxy.cs
- DataRowExtensions.cs
- BufferBuilder.cs
- GeometryHitTestResult.cs
- Control.cs
- HttpProtocolImporter.cs
- PeerResolverMode.cs
- PowerModeChangedEventArgs.cs
- ContentValidator.cs
- LinqDataSourceSelectEventArgs.cs
- RealizationContext.cs
- TextEditorDragDrop.cs
- AuthenticationModulesSection.cs
- XsltOutput.cs
- ByteAnimationBase.cs
- SettingsPropertyIsReadOnlyException.cs
- TextAnchor.cs
- SendKeys.cs
- ArrangedElement.cs
- StreamUpdate.cs
- GroupJoinQueryOperator.cs
- NavigationHelper.cs
- IIS7UserPrincipal.cs
- DoubleAnimationClockResource.cs
- ProtectedConfigurationProviderCollection.cs
- BaseCodeDomTreeGenerator.cs
- DesignTimeTemplateParser.cs
- MultiDataTrigger.cs
- TreeViewItemAutomationPeer.cs
- RequestCachingSection.cs
- CmsUtils.cs
- MethodBuilder.cs
- DataObject.cs
- ChainOfDependencies.cs
- StylusCaptureWithinProperty.cs
- DataGridViewCellValidatingEventArgs.cs
- NetworkCredential.cs
- SelectionService.cs
- ClientConfigPaths.cs
- PersistChildrenAttribute.cs
- PriorityQueue.cs
- MultiTrigger.cs
- EmbeddedMailObjectsCollection.cs
- CmsInterop.cs
- ResourceSet.cs
- XmlSchemaComplexContentRestriction.cs
- InfoCardRSACryptoProvider.cs
- RegexBoyerMoore.cs
- HttpServerUtilityBase.cs
- AnimationLayer.cs
- MbpInfo.cs
- SchemaImporter.cs
- Emitter.cs
- HttpListenerResponse.cs
- SingleAnimation.cs
- LingerOption.cs
- SqlRowUpdatedEvent.cs
- SerializationInfoEnumerator.cs
- Int64Storage.cs
- SupportsEventValidationAttribute.cs
- LabelDesigner.cs
- mediapermission.cs
- AnnotationResourceCollection.cs
- BinaryWriter.cs
- SafeViewOfFileHandle.cs
- MimeMultiPart.cs
- X500Name.cs
- DesignerValidatorAdapter.cs
- OdbcConnectionFactory.cs
- Literal.cs
- Property.cs
- SpeechRecognitionEngine.cs
- DateTimeValueSerializer.cs
- HMACSHA384.cs
- TraceListeners.cs
- SQLInt16Storage.cs
- ListViewUpdatedEventArgs.cs