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
- DataBinder.cs
- ScalarOps.cs
- IssuanceLicense.cs
- RectangleConverter.cs
- Control.cs
- Script.cs
- ToolstripProfessionalRenderer.cs
- MouseEventArgs.cs
- FilterableAttribute.cs
- ProxyHwnd.cs
- AuthenticationModuleElement.cs
- LinearKeyFrames.cs
- UIElementCollection.cs
- WebPartUserCapability.cs
- XmlDeclaration.cs
- NotSupportedException.cs
- BufferModesCollection.cs
- HtmlWindow.cs
- RegionIterator.cs
- SafeProcessHandle.cs
- SqlNotificationEventArgs.cs
- BuildProvider.cs
- DoubleAnimation.cs
- RecipientInfo.cs
- XmlUtilWriter.cs
- MultiBindingExpression.cs
- TableCell.cs
- RecommendedAsConfigurableAttribute.cs
- OracleRowUpdatingEventArgs.cs
- WebPartConnection.cs
- MatrixTransform3D.cs
- Composition.cs
- StandardCommands.cs
- Directory.cs
- MergePropertyDescriptor.cs
- WindowAutomationPeer.cs
- ToolStrip.cs
- ListBoxChrome.cs
- ProcessModelInfo.cs
- ContractMapping.cs
- TransformerTypeCollection.cs
- ContentDisposition.cs
- ClockController.cs
- LogLogRecord.cs
- RoutingConfiguration.cs
- ConfigLoader.cs
- TextElement.cs
- GridViewDeleteEventArgs.cs
- Decoder.cs
- ScanQueryOperator.cs
- _FixedSizeReader.cs
- LicenseManager.cs
- Model3DGroup.cs
- TextDecorationCollection.cs
- PropagatorResult.cs
- ScrollBar.cs
- AsymmetricKeyExchangeFormatter.cs
- NestedContainer.cs
- IconHelper.cs
- BasicBrowserDialog.designer.cs
- RuleSettingsCollection.cs
- CmsInterop.cs
- FlagsAttribute.cs
- MenuCommand.cs
- UpdatePanelTriggerCollection.cs
- DescendantQuery.cs
- InvariantComparer.cs
- DbQueryCommandTree.cs
- ExtensibleClassFactory.cs
- BitmapData.cs
- ProfileServiceManager.cs
- CategoryList.cs
- FormatConvertedBitmap.cs
- DefaultExpressionVisitor.cs
- PageCodeDomTreeGenerator.cs
- ReadOnlyDataSource.cs
- TagMapInfo.cs
- MainMenu.cs
- XmlDomTextWriter.cs
- Array.cs
- LayoutEditorPart.cs
- ScrollBarAutomationPeer.cs
- MembershipSection.cs
- RewritingSimplifier.cs
- ConfigurationLockCollection.cs
- MobileErrorInfo.cs
- ResourcesBuildProvider.cs
- OdbcConnectionString.cs
- DesignerSelectionListAdapter.cs
- AssociatedControlConverter.cs
- SqlGatherConsumedAliases.cs
- IDQuery.cs
- BinaryUtilClasses.cs
- TimerElapsedEvenArgs.cs
- ManagementInstaller.cs
- VarRefManager.cs
- SqlDependencyUtils.cs
- SmiMetaDataProperty.cs
- PagesChangedEventArgs.cs
- XmlAggregates.cs