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
- QilValidationVisitor.cs
- BatchParser.cs
- HtmlAnchor.cs
- DocumentPageTextView.cs
- WebPartConnectionsConfigureVerb.cs
- ObjectSpanRewriter.cs
- GenericAuthenticationEventArgs.cs
- WorkflowPersistenceService.cs
- TrueReadOnlyCollection.cs
- NavigateEvent.cs
- WpfGeneratedKnownTypes.cs
- CodeCastExpression.cs
- DataGridViewSelectedRowCollection.cs
- FixedSOMContainer.cs
- ClusterRegistryConfigurationProvider.cs
- CommonXSendMessage.cs
- CaseCqlBlock.cs
- StreamFormatter.cs
- AvTraceDetails.cs
- PersonalizationProviderCollection.cs
- CommonDialog.cs
- BufferedWebEventProvider.cs
- Descriptor.cs
- MemberRestriction.cs
- Rule.cs
- ProfileModule.cs
- ImageConverter.cs
- DispatcherExceptionEventArgs.cs
- PartialClassGenerationTask.cs
- Msec.cs
- CustomErrorCollection.cs
- Label.cs
- DbConnectionFactory.cs
- Border.cs
- InstanceNameConverter.cs
- TypedColumnHandler.cs
- HTTPNotFoundHandler.cs
- ColumnResizeUndoUnit.cs
- HMACSHA256.cs
- ChtmlImageAdapter.cs
- HighContrastHelper.cs
- Mappings.cs
- objectresult_tresulttype.cs
- AnonymousIdentificationModule.cs
- DataViewSetting.cs
- XPathArrayIterator.cs
- PriorityBinding.cs
- OleDbParameterCollection.cs
- KeyFrames.cs
- ToolStripDropTargetManager.cs
- ResolveResponse.cs
- UnmanagedMemoryStream.cs
- FrameworkElement.cs
- PrimitiveXmlSerializers.cs
- Filter.cs
- SettingsProperty.cs
- DataServiceRequest.cs
- SystemWebSectionGroup.cs
- SettingsPropertyValue.cs
- DocumentGrid.cs
- DllNotFoundException.cs
- Bidi.cs
- PipeException.cs
- SafeFileHandle.cs
- PerfCounters.cs
- FormsAuthenticationModule.cs
- Matrix3D.cs
- GifBitmapEncoder.cs
- AutoResetEvent.cs
- ECDiffieHellmanCngPublicKey.cs
- Latin1Encoding.cs
- SHA1Cng.cs
- DecimalStorage.cs
- isolationinterop.cs
- EntityChangedParams.cs
- GatewayDefinition.cs
- HyperLinkField.cs
- TextSelectionHelper.cs
- DocumentOrderComparer.cs
- XmlRootAttribute.cs
- SimpleFieldTemplateFactory.cs
- StyleCollection.cs
- LockedAssemblyCache.cs
- TextFindEngine.cs
- PolyQuadraticBezierSegment.cs
- ToolStripGrip.cs
- StreamInfo.cs
- Mapping.cs
- SqlLiftIndependentRowExpressions.cs
- ListViewItem.cs
- HttpContextBase.cs
- ExtensibleSyndicationObject.cs
- EncryptedType.cs
- FacetDescriptionElement.cs
- ActivityExecutorSurrogate.cs
- XamlToRtfParser.cs
- SafeFileMappingHandle.cs
- ListViewSelectEventArgs.cs
- EditorAttribute.cs
- CompletionProxy.cs