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
- WebResponse.cs
- WorkflowApplicationEventArgs.cs
- EntitySetBase.cs
- WizardForm.cs
- DbMetaDataColumnNames.cs
- Triangle.cs
- DataGridItemCollection.cs
- MDIClient.cs
- ReadOnlyTernaryTree.cs
- ProgressBarBrushConverter.cs
- BuildProvider.cs
- DataColumnPropertyDescriptor.cs
- DescendantBaseQuery.cs
- MergeEnumerator.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- XmlChoiceIdentifierAttribute.cs
- Point3DAnimation.cs
- TargetConverter.cs
- DesigntimeLicenseContext.cs
- ISessionStateStore.cs
- UnsafeNativeMethods.cs
- DoubleStorage.cs
- FormViewCommandEventArgs.cs
- XPathSelectionIterator.cs
- SettingsPropertyWrongTypeException.cs
- RegexCompilationInfo.cs
- BulletedList.cs
- StringUtil.cs
- InputDevice.cs
- DataControlReference.cs
- CompositeDuplexElement.cs
- ConstructorNeedsTagAttribute.cs
- ImageConverter.cs
- CodeStatementCollection.cs
- EventDrivenDesigner.cs
- TabItem.cs
- ToolStripOverflowButton.cs
- URLMembershipCondition.cs
- KerberosSecurityTokenProvider.cs
- DesignBindingValueUIHandler.cs
- HtmlToClrEventProxy.cs
- BaseCAMarshaler.cs
- ColorConverter.cs
- ConfigurationSectionHelper.cs
- MergeFilterQuery.cs
- ObjectSecurity.cs
- DodSequenceMerge.cs
- GeometryCollection.cs
- CroppedBitmap.cs
- PropertyChangedEventArgs.cs
- SqlMethods.cs
- ReachFixedDocumentSerializer.cs
- Action.cs
- TemplateBamlTreeBuilder.cs
- RepeatInfo.cs
- FileEnumerator.cs
- Exceptions.cs
- CombinedHttpChannel.cs
- XmlReflectionMember.cs
- DrawingContextDrawingContextWalker.cs
- EventPropertyMap.cs
- ObjectStateManagerMetadata.cs
- Constraint.cs
- PropertyCollection.cs
- Vector3DCollectionConverter.cs
- MinMaxParagraphWidth.cs
- InternalPermissions.cs
- TemplatedWizardStep.cs
- LogEntrySerialization.cs
- SqlConnectionPoolProviderInfo.cs
- QualifierSet.cs
- HeaderCollection.cs
- DataGridViewColumnHeaderCell.cs
- DocumentGridPage.cs
- ScriptingProfileServiceSection.cs
- BindingContext.cs
- Point3DValueSerializer.cs
- WindowsScrollBar.cs
- ErrorLog.cs
- TraceData.cs
- Configuration.cs
- FacetValues.cs
- AttributeCollection.cs
- PageBuildProvider.cs
- ErrorProvider.cs
- CompoundFileReference.cs
- Classification.cs
- HelloMessageCD1.cs
- DataConnectionHelper.cs
- EntityDataSourceView.cs
- DataTableReaderListener.cs
- IsolatedStoragePermission.cs
- PolyBezierSegmentFigureLogic.cs
- __TransparentProxy.cs
- SequenceQuery.cs
- TransformerInfoCollection.cs
- EndpointAddressMessageFilterTable.cs
- XpsColorContext.cs
- MonthChangedEventArgs.cs
- EntityContainerRelationshipSetEnd.cs