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
- XMLSyntaxException.cs
- TypeForwardedFromAttribute.cs
- InputLanguageManager.cs
- ProgramNode.cs
- SequentialUshortCollection.cs
- AssertSection.cs
- BrowserCapabilitiesCodeGenerator.cs
- CircleHotSpot.cs
- WorkflowHostingEndpoint.cs
- DataDocumentXPathNavigator.cs
- StreamReader.cs
- ByteStream.cs
- Single.cs
- TableCellAutomationPeer.cs
- XmlEnumAttribute.cs
- VerificationException.cs
- NestedContainer.cs
- DashStyles.cs
- SystemWebCachingSectionGroup.cs
- CommandEventArgs.cs
- ScriptComponentDescriptor.cs
- CultureInfo.cs
- DefaultProxySection.cs
- OleDbFactory.cs
- ToolStripDesigner.cs
- SeverityFilter.cs
- ReadOnlyHierarchicalDataSource.cs
- Native.cs
- TreeNodeClickEventArgs.cs
- SqlFacetAttribute.cs
- TaskScheduler.cs
- TableRowCollection.cs
- ProxyWebPartManagerDesigner.cs
- StyleBamlTreeBuilder.cs
- UndoManager.cs
- DBCSCodePageEncoding.cs
- Win32.cs
- ActiveDocumentEvent.cs
- SynchronizedReadOnlyCollection.cs
- EllipseGeometry.cs
- BaseProcessor.cs
- FusionWrap.cs
- ProxyHwnd.cs
- StylusPointDescription.cs
- XmlBinaryWriterSession.cs
- PreloadHost.cs
- SqlDataSourceConfigureSortForm.cs
- BoundColumn.cs
- IncrementalReadDecoders.cs
- DataGridTablesFactory.cs
- HttpHandlersSection.cs
- XPathArrayIterator.cs
- RoleServiceManager.cs
- COM2TypeInfoProcessor.cs
- TreeNodeCollection.cs
- EnterpriseServicesHelper.cs
- SqlTriggerAttribute.cs
- CollectionViewGroup.cs
- CodeSubDirectoriesCollection.cs
- DBCSCodePageEncoding.cs
- ObjectCloneHelper.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- HostTimeoutsElement.cs
- SendKeys.cs
- AppDomainAttributes.cs
- SynchronizationHandlesCodeDomSerializer.cs
- JoinGraph.cs
- ControlBuilderAttribute.cs
- SourceInterpreter.cs
- Int32RectConverter.cs
- EntityDataSourceStatementEditor.cs
- ServicesUtilities.cs
- DbParameterCollectionHelper.cs
- Button.cs
- UnrecognizedAssertionsBindingElement.cs
- BitArray.cs
- GeometryDrawing.cs
- precedingquery.cs
- ParagraphVisual.cs
- WindowsContainer.cs
- ChtmlPageAdapter.cs
- ClassGenerator.cs
- CommandID.cs
- GetLedgerRequest.cs
- TreeViewItem.cs
- VisualStyleTypesAndProperties.cs
- LicFileLicenseProvider.cs
- CompositeCollectionView.cs
- SubMenuStyleCollection.cs
- PolyQuadraticBezierSegment.cs
- OdbcHandle.cs
- XpsS0ValidatingLoader.cs
- XPathSelectionIterator.cs
- RenderOptions.cs
- XPathParser.cs
- UniformGrid.cs
- TabItemWrapperAutomationPeer.cs
- LinearKeyFrames.cs
- ProfileGroupSettings.cs
- Util.cs