Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CompMod / System / ComponentModel / Design / ActiveDocumentEvent.cs / 1 / 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
- Screen.cs
- InternalResources.cs
- OdbcPermission.cs
- UrlAuthFailedErrorFormatter.cs
- Freezable.cs
- CapabilitiesState.cs
- PartialTrustVisibleAssembly.cs
- CssStyleCollection.cs
- HttpDictionary.cs
- Compiler.cs
- _FixedSizeReader.cs
- HandleExceptionArgs.cs
- DelegatingTypeDescriptionProvider.cs
- ImportOptions.cs
- Wizard.cs
- DataGridViewCellMouseEventArgs.cs
- ValidationManager.cs
- IdentityManager.cs
- UITypeEditor.cs
- CustomTypeDescriptor.cs
- TCEAdapterGenerator.cs
- AddInAttribute.cs
- TableProviderWrapper.cs
- AsyncResult.cs
- ExpressionLink.cs
- LineInfo.cs
- ListViewDataItem.cs
- COM2IDispatchConverter.cs
- Pair.cs
- ToolStripOverflow.cs
- MergeFailedEvent.cs
- OdbcParameter.cs
- ProviderCollection.cs
- SignatureToken.cs
- ListBoxChrome.cs
- SqlParameterizer.cs
- NativeObjectSecurity.cs
- safelink.cs
- Int16Converter.cs
- HttpApplicationStateBase.cs
- DataSourceHelper.cs
- SupportingTokenAuthenticatorSpecification.cs
- ByValueEqualityComparer.cs
- SizeIndependentAnimationStorage.cs
- ReversePositionQuery.cs
- LayeredChannelFactory.cs
- WmlListAdapter.cs
- NumericUpDown.cs
- DataSourceViewSchemaConverter.cs
- WhitespaceSignificantCollectionAttribute.cs
- EmptyElement.cs
- CriticalHandle.cs
- SQLSingleStorage.cs
- AuthorizationSection.cs
- QueryStringParameter.cs
- ResourceReferenceExpressionConverter.cs
- Floater.cs
- TimeStampChecker.cs
- RunClient.cs
- DrawingImage.cs
- NativeMethods.cs
- DXD.cs
- ImportOptions.cs
- XamlBrushSerializer.cs
- OracleEncoding.cs
- Vector.cs
- DataGridViewRowStateChangedEventArgs.cs
- WebUtil.cs
- WriteableBitmap.cs
- ResourceDisplayNameAttribute.cs
- KnownAssemblyEntry.cs
- Journaling.cs
- DataSourceView.cs
- RefreshEventArgs.cs
- GridItemPattern.cs
- MinMaxParagraphWidth.cs
- EditorPartCollection.cs
- AssemblyNameProxy.cs
- XamlSerializerUtil.cs
- NamedElement.cs
- WindowsTokenRoleProvider.cs
- ClientBase.cs
- ReferencedAssembly.cs
- HttpFileCollectionWrapper.cs
- SpeechAudioFormatInfo.cs
- SynchronizedMessageSource.cs
- DataGridRow.cs
- CodeAssignStatement.cs
- SecurityValidationBehavior.cs
- IgnoreFileBuildProvider.cs
- Timer.cs
- MultipartIdentifier.cs
- QueryUtil.cs
- CodeBlockBuilder.cs
- ScriptResourceHandler.cs
- AnyReturnReader.cs
- NetTcpBindingCollectionElement.cs
- TextTrailingCharacterEllipsis.cs
- EncryptedType.cs
- EditBehavior.cs