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
- MachineKeySection.cs
- Scanner.cs
- WebPartVerb.cs
- BinaryMethodMessage.cs
- QueryOperatorEnumerator.cs
- ActiveXSite.cs
- LayoutEvent.cs
- BindingCompleteEventArgs.cs
- ConnectivityStatus.cs
- SqlInfoMessageEvent.cs
- SuppressIldasmAttribute.cs
- ScaleTransform.cs
- WsatExtendedInformation.cs
- InvokeProviderWrapper.cs
- HostedTcpTransportManager.cs
- COM2ExtendedUITypeEditor.cs
- FileRecordSequenceCompletedAsyncResult.cs
- RegistryKey.cs
- ReadOnlyHierarchicalDataSource.cs
- ResourcePermissionBaseEntry.cs
- GeneralTransform3DTo2DTo3D.cs
- WarningException.cs
- LayoutSettings.cs
- PreservationFileReader.cs
- UnicodeEncoding.cs
- FontStretchConverter.cs
- AnimatedTypeHelpers.cs
- EffectiveValueEntry.cs
- FusionWrap.cs
- EntitySetBaseCollection.cs
- AmbientProperties.cs
- DesignSurfaceEvent.cs
- ContentPlaceHolder.cs
- QueryCacheKey.cs
- FixedPageProcessor.cs
- HtmlTableRowCollection.cs
- Visitors.cs
- MailAddressCollection.cs
- SplineKeyFrames.cs
- ConfigurationManagerHelper.cs
- XD.cs
- DrawListViewItemEventArgs.cs
- SystemIPGlobalProperties.cs
- UnknownBitmapDecoder.cs
- OleStrCAMarshaler.cs
- SqlProvider.cs
- SolidBrush.cs
- StringAnimationUsingKeyFrames.cs
- StorageMappingFragment.cs
- DataTableReader.cs
- ObjectListTitleAttribute.cs
- XmlDocumentFragment.cs
- TextServicesCompartment.cs
- VariantWrapper.cs
- ThreadPoolTaskScheduler.cs
- ClipboardProcessor.cs
- StructuredType.cs
- DataGridViewCellEventArgs.cs
- TableRowCollection.cs
- XmlSequenceWriter.cs
- TemplatePropertyEntry.cs
- TemplateControl.cs
- WinEventHandler.cs
- DataGridHeaderBorder.cs
- XPathSelectionIterator.cs
- Span.cs
- EmptyEnumerable.cs
- Privilege.cs
- HtmlTextBoxAdapter.cs
- TextTrailingCharacterEllipsis.cs
- DragDeltaEventArgs.cs
- DateRangeEvent.cs
- SemaphoreSlim.cs
- TypeListConverter.cs
- XmlDomTextWriter.cs
- DependencyObjectProvider.cs
- IPHostEntry.cs
- ResXDataNode.cs
- FilterRepeater.cs
- InstanceNameConverter.cs
- TableLayoutStyle.cs
- WindowsScrollBarBits.cs
- SelfSignedCertificate.cs
- DockPatternIdentifiers.cs
- Brushes.cs
- TextSchema.cs
- Command.cs
- DebugController.cs
- CompareInfo.cs
- StorageAssociationSetMapping.cs
- ConcurrentQueue.cs
- DataListItemCollection.cs
- DataChangedEventManager.cs
- SatelliteContractVersionAttribute.cs
- DispatcherFrame.cs
- Point.cs
- Message.cs
- SourceChangedEventArgs.cs
- ThemeDictionaryExtension.cs
- DataRowCollection.cs