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
- DocumentScope.cs
- LinkedResource.cs
- RegexCharClass.cs
- StatusBarDesigner.cs
- KnownTypesHelper.cs
- WindowAutomationPeer.cs
- CodeAttributeArgument.cs
- Geometry.cs
- CodeObjectCreateExpression.cs
- SlotInfo.cs
- GorillaCodec.cs
- XmlCharCheckingReader.cs
- XPathAncestorQuery.cs
- WebPart.cs
- PathSegmentCollection.cs
- XmlILStorageConverter.cs
- PrintingPermission.cs
- DynamicRenderer.cs
- X509Certificate2Collection.cs
- CompressionTransform.cs
- RayHitTestParameters.cs
- IfAction.cs
- SequentialWorkflowHeaderFooter.cs
- HighlightComponent.cs
- PartitionedStream.cs
- PointAnimationUsingPath.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- HwndKeyboardInputProvider.cs
- CroppedBitmap.cs
- ChineseLunisolarCalendar.cs
- RowSpanVector.cs
- PeerNameRecordCollection.cs
- DSASignatureFormatter.cs
- FileChangesMonitor.cs
- HttpApplicationFactory.cs
- SerializationInfo.cs
- ProviderConnectionPoint.cs
- Point3DCollectionValueSerializer.cs
- ConnectionStringsSection.cs
- RegistrySecurity.cs
- ListViewEditEventArgs.cs
- SaveFileDialog.cs
- httpserverutility.cs
- Rijndael.cs
- MergePropertyDescriptor.cs
- DummyDataSource.cs
- EdmItemCollection.cs
- GeneralTransform3DGroup.cs
- UpdateTranslator.cs
- InstanceCreationEditor.cs
- KeyInterop.cs
- XhtmlMobileTextWriter.cs
- ListenDesigner.cs
- ObservableCollection.cs
- ItemMap.cs
- OutOfMemoryException.cs
- XmlSchemaParticle.cs
- Symbol.cs
- ContentOperations.cs
- EntityTemplateFactory.cs
- ConvertBinder.cs
- Object.cs
- WindowsTokenRoleProvider.cs
- BamlRecordWriter.cs
- PriorityBindingExpression.cs
- ThreadExceptionEvent.cs
- BindingGraph.cs
- TriState.cs
- WorkflowApplicationException.cs
- IgnorePropertiesAttribute.cs
- StrongNameIdentityPermission.cs
- CanonicalFormWriter.cs
- ConfigurationValue.cs
- InternalDispatchObject.cs
- MetadataFile.cs
- WorkflowTraceTransfer.cs
- WebEventCodes.cs
- _CacheStreams.cs
- SiteIdentityPermission.cs
- SoapInteropTypes.cs
- UnaryOperationBinder.cs
- TableCell.cs
- FullTextState.cs
- ValidationPropertyAttribute.cs
- SetterBase.cs
- BooleanSwitch.cs
- PropertyChangingEventArgs.cs
- JsonMessageEncoderFactory.cs
- TextRunTypographyProperties.cs
- CodeParameterDeclarationExpressionCollection.cs
- RequestCachePolicyConverter.cs
- UriSectionData.cs
- GlyphShapingProperties.cs
- SoapSchemaImporter.cs
- PropertyDescriptorGridEntry.cs
- OdbcStatementHandle.cs
- LinearKeyFrames.cs
- SecurityException.cs
- GcSettings.cs
- DynamicResourceExtension.cs