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
- Matrix.cs
- DataBoundLiteralControl.cs
- MemoryPressure.cs
- ManagedFilter.cs
- BuildProvider.cs
- RectangleGeometry.cs
- QuaternionRotation3D.cs
- DiscoveryClientProtocol.cs
- ToolStripComboBox.cs
- ClientUrlResolverWrapper.cs
- SqlDataReaderSmi.cs
- SHA512Managed.cs
- HwndPanningFeedback.cs
- BamlLocalizableResource.cs
- TreeNodeConverter.cs
- NodeFunctions.cs
- MsmqDecodeHelper.cs
- HtmlControlDesigner.cs
- SynthesizerStateChangedEventArgs.cs
- DefaultValueMapping.cs
- PersonalizableTypeEntry.cs
- DataBindingExpressionBuilder.cs
- AssemblyAssociatedContentFileAttribute.cs
- PtsHost.cs
- KnowledgeBase.cs
- BasicAsyncResult.cs
- EditorPart.cs
- DataSetFieldSchema.cs
- SqlWriter.cs
- PathTooLongException.cs
- UserCancellationException.cs
- COM2PropertyDescriptor.cs
- SimpleBitVector32.cs
- SigningProgress.cs
- SecureConversationVersion.cs
- TypedElement.cs
- FontFamily.cs
- CodeMemberMethod.cs
- IDReferencePropertyAttribute.cs
- FragmentNavigationEventArgs.cs
- InternalMappingException.cs
- NavigationPropertyEmitter.cs
- BindMarkupExtensionSerializer.cs
- Normalization.cs
- HyperLink.cs
- DataTableReader.cs
- ListViewGroup.cs
- BufferModeSettings.cs
- Table.cs
- TypeDescriptorContext.cs
- SqlFunctionAttribute.cs
- X509Extension.cs
- FamilyCollection.cs
- Repeater.cs
- StrokeDescriptor.cs
- XmlEnumAttribute.cs
- ConstantExpression.cs
- QilTargetType.cs
- EUCJPEncoding.cs
- ObjectIDGenerator.cs
- RequestedSignatureDialog.cs
- GraphicsContext.cs
- FormViewDesigner.cs
- SocketPermission.cs
- ACE.cs
- ConsumerConnectionPointCollection.cs
- ControlCachePolicy.cs
- AsymmetricKeyExchangeFormatter.cs
- ISFTagAndGuidCache.cs
- TcpActivation.cs
- EncryptedKey.cs
- HTTPRemotingHandler.cs
- _Semaphore.cs
- CodeGeneratorOptions.cs
- Exceptions.cs
- ScopelessEnumAttribute.cs
- ErrorWrapper.cs
- ProfilePropertyNameValidator.cs
- CompilerTypeWithParams.cs
- ParseNumbers.cs
- ByteStorage.cs
- processwaithandle.cs
- IdentityModelDictionary.cs
- columnmapfactory.cs
- RemotingHelper.cs
- regiisutil.cs
- Composition.cs
- LongMinMaxAggregationOperator.cs
- XmlWhitespace.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- TokenBasedSet.cs
- OleDbParameterCollection.cs
- Speller.cs
- DirectoryInfo.cs
- SystemTcpConnection.cs
- FaultContractInfo.cs
- PropertyCondition.cs
- NativeMethods.cs
- RsaKeyIdentifierClause.cs
- BitmapSizeOptions.cs