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
- QilScopedVisitor.cs
- CodeSubDirectoriesCollection.cs
- PackWebResponse.cs
- DesignerView.cs
- PeerCustomResolverSettings.cs
- FamilyMapCollection.cs
- TextParagraph.cs
- EncodingNLS.cs
- SessionPageStateSection.cs
- WebDescriptionAttribute.cs
- PropertyRef.cs
- WinFormsComponentEditor.cs
- SpecularMaterial.cs
- PerformanceCounterManager.cs
- StrongNameIdentityPermission.cs
- ProvidersHelper.cs
- KeyInstance.cs
- ToolboxComponentsCreatedEventArgs.cs
- TypedMessageConverter.cs
- PropertyKey.cs
- BeginEvent.cs
- ScrollItemPatternIdentifiers.cs
- Label.cs
- DataTransferEventArgs.cs
- Signature.cs
- MonitoringDescriptionAttribute.cs
- StringFunctions.cs
- CodeDOMUtility.cs
- DataRowView.cs
- FixedSOMLineCollection.cs
- AxHost.cs
- XmlLanguageConverter.cs
- peersecuritysettings.cs
- ConnectionOrientedTransportElement.cs
- ContentAlignmentEditor.cs
- HandleRef.cs
- SelectionItemProviderWrapper.cs
- DispatcherExceptionFilterEventArgs.cs
- WinEventQueueItem.cs
- ColumnWidthChangingEvent.cs
- TextDocumentView.cs
- AttributeEmitter.cs
- MsmqTransportElement.cs
- Psha1DerivedKeyGenerator.cs
- CopyOnWriteList.cs
- ListViewCommandEventArgs.cs
- PriorityBindingExpression.cs
- TargetConverter.cs
- SymbolUsageManager.cs
- WrappingXamlSchemaContext.cs
- Stream.cs
- Triplet.cs
- XmlSortKeyAccumulator.cs
- AppDomainFactory.cs
- ListenerAdapter.cs
- XmlFormatExtensionPrefixAttribute.cs
- DataTableNewRowEvent.cs
- ValidationPropertyAttribute.cs
- XmlQueryStaticData.cs
- InputLangChangeEvent.cs
- Rights.cs
- MobileFormsAuthentication.cs
- SQLDecimal.cs
- RunClient.cs
- Point3DAnimationBase.cs
- TextSerializer.cs
- KeyInfo.cs
- ZipIOFileItemStream.cs
- ListViewGroupItemCollection.cs
- EnumValAlphaComparer.cs
- _NegoState.cs
- UserControlParser.cs
- ClientBuildManager.cs
- BitConverter.cs
- WebPartCatalogAddVerb.cs
- TypeToStringValueConverter.cs
- RotateTransform3D.cs
- ProfileManager.cs
- FocusManager.cs
- PathGeometry.cs
- WebServiceFault.cs
- OperationResponse.cs
- bidPrivateBase.cs
- GridViewColumnHeaderAutomationPeer.cs
- columnmapkeybuilder.cs
- TreeView.cs
- RegistryConfigurationProvider.cs
- _LocalDataStore.cs
- MachineKeySection.cs
- _HeaderInfoTable.cs
- PackageProperties.cs
- LazyLoadBehavior.cs
- ActiveXSite.cs
- Html32TextWriter.cs
- Literal.cs
- GetIndexBinder.cs
- HttpTransportManager.cs
- EventHandlersStore.cs
- XmlILModule.cs
- DynamicValueConverter.cs