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
- XmlAttributeAttribute.cs
- PagedDataSource.cs
- NamespaceDecl.cs
- BitmapEffectDrawingContextWalker.cs
- ConstrainedDataObject.cs
- LogicalTreeHelper.cs
- SingleTagSectionHandler.cs
- XmlDataSourceNodeDescriptor.cs
- PagedDataSource.cs
- XmlSerializerVersionAttribute.cs
- Speller.cs
- SessionStateSection.cs
- FontWeightConverter.cs
- ScalarOps.cs
- FormViewDeletedEventArgs.cs
- ButtonBaseAdapter.cs
- NonVisualControlAttribute.cs
- TextWriterEngine.cs
- KerberosRequestorSecurityToken.cs
- CompilerScopeManager.cs
- RemoteWebConfigurationHostStream.cs
- ResXFileRef.cs
- KeyBinding.cs
- VScrollProperties.cs
- SelectingProviderEventArgs.cs
- DataGridViewHeaderCell.cs
- PagerSettings.cs
- Avt.cs
- FeatureAttribute.cs
- MULTI_QI.cs
- Predicate.cs
- FormatException.cs
- UriSection.cs
- BindingOperations.cs
- IndexOutOfRangeException.cs
- BrowserCapabilitiesCompiler.cs
- XPathNodePointer.cs
- SymbolTable.cs
- CroppedBitmap.cs
- EventsTab.cs
- LayoutTable.cs
- InternalBufferManager.cs
- WebPartActionVerb.cs
- Preprocessor.cs
- HttpHandlerAction.cs
- DataFieldEditor.cs
- EditorPartDesigner.cs
- InheritedPropertyChangedEventArgs.cs
- AsyncStreamReader.cs
- InkCollectionBehavior.cs
- SqlCommandSet.cs
- FactoryRecord.cs
- KnownBoxes.cs
- ItemsControl.cs
- PeerContact.cs
- ColumnPropertiesGroup.cs
- TextDecorationCollection.cs
- _SecureChannel.cs
- ObjectDataSourceStatusEventArgs.cs
- InstanceKeyCompleteException.cs
- SetterBaseCollection.cs
- TabItemAutomationPeer.cs
- DetailsViewUpdatedEventArgs.cs
- DataContractAttribute.cs
- XmlStringTable.cs
- ControlIdConverter.cs
- PropertyNames.cs
- ByteViewer.cs
- SqlInternalConnectionTds.cs
- Decoder.cs
- MultipartContentParser.cs
- SettingsContext.cs
- EventLog.cs
- GPPOINTF.cs
- MetabaseServerConfig.cs
- Pens.cs
- CalendarDayButton.cs
- CriticalHandle.cs
- HandlerBase.cs
- TextParagraphCache.cs
- LinqDataSourceInsertEventArgs.cs
- counter.cs
- DefinitionProperties.cs
- Hex.cs
- WebReference.cs
- ContextProperty.cs
- ArcSegment.cs
- LogPolicy.cs
- CalendarSelectionChangedEventArgs.cs
- DurableErrorHandler.cs
- RouteValueDictionary.cs
- Border.cs
- ObjRef.cs
- NullReferenceException.cs
- SchemaType.cs
- Stack.cs
- ClientSettingsProvider.cs
- SqlWebEventProvider.cs
- EventLogStatus.cs
- xdrvalidator.cs