Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / CompMod / System / ComponentModel / Design / ComponentChangedEvent.cs / 1 / ComponentChangedEvent.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.ComponentModel.Design {
using Microsoft.Win32;
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Security.Permissions;
///
/// Provides data for the event.
///
[HostProtection(SharedState = true)]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Name="FullTrust")]
public sealed class ComponentChangedEventArgs : EventArgs {
private object component;
private MemberDescriptor member;
private object oldValue;
private object newValue;
///
///
/// Gets or sets the component that is the cause of this event.
///
///
public object Component {
get {
return component;
}
}
///
///
/// Gets or sets the member that is about to change.
///
///
public MemberDescriptor Member {
get {
return member;
}
}
///
///
/// Gets or sets the new value of the changed member.
///
///
public object NewValue {
get {
return newValue;
}
}
///
///
/// Gets or sets the old value of the changed member.
///
///
public object OldValue {
get {
return oldValue;
}
}
///
/// Initializes a new instance of the class.
///
public ComponentChangedEventArgs(object component, MemberDescriptor member, object oldValue, object newValue) {
this.component = component;
this.member = member;
this.oldValue = oldValue;
this.newValue = newValue;
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.ComponentModel.Design {
using Microsoft.Win32;
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Security.Permissions;
///
/// Provides data for the event.
///
[HostProtection(SharedState = true)]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Name="FullTrust")]
public sealed class ComponentChangedEventArgs : EventArgs {
private object component;
private MemberDescriptor member;
private object oldValue;
private object newValue;
///
///
/// Gets or sets the component that is the cause of this event.
///
///
public object Component {
get {
return component;
}
}
///
///
/// Gets or sets the member that is about to change.
///
///
public MemberDescriptor Member {
get {
return member;
}
}
///
///
/// Gets or sets the new value of the changed member.
///
///
public object NewValue {
get {
return newValue;
}
}
///
///
/// Gets or sets the old value of the changed member.
///
///
public object OldValue {
get {
return oldValue;
}
}
///
/// Initializes a new instance of the class.
///
public ComponentChangedEventArgs(object component, MemberDescriptor member, object oldValue, object newValue) {
this.component = component;
this.member = member;
this.oldValue = oldValue;
this.newValue = newValue;
}
}
}
// 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
- SharedTcpTransportManager.cs
- TextContainerHelper.cs
- ConnectionManagementSection.cs
- MetadataItemSerializer.cs
- LinqDataSourceDisposeEventArgs.cs
- Attachment.cs
- TrackingAnnotationCollection.cs
- XmlIgnoreAttribute.cs
- XsltConvert.cs
- PolyQuadraticBezierSegment.cs
- invalidudtexception.cs
- Encoding.cs
- PrimaryKeyTypeConverter.cs
- MenuItemStyle.cs
- CodeMemberField.cs
- ListViewInsertionMark.cs
- TextEditor.cs
- RestHandler.cs
- DeviceSpecificChoice.cs
- HttpApplicationFactory.cs
- MetadataSource.cs
- DiscoveryEndpointValidator.cs
- DataControlExtensions.cs
- DispatcherSynchronizationContext.cs
- ColorContextHelper.cs
- MultiPageTextView.cs
- AssemblyAttributesGoHere.cs
- ApplyHostConfigurationBehavior.cs
- XmlAttributeProperties.cs
- ToolStripCollectionEditor.cs
- ClockGroup.cs
- Point3DAnimationBase.cs
- XsltLibrary.cs
- DataGridColumnStyleMappingNameEditor.cs
- PartBasedPackageProperties.cs
- XmlDeclaration.cs
- ListParagraph.cs
- TypeDelegator.cs
- OleDbInfoMessageEvent.cs
- DynamicActivityTypeDescriptor.cs
- Attributes.cs
- ColorKeyFrameCollection.cs
- LightweightCodeGenerator.cs
- CacheMemory.cs
- GroupLabel.cs
- DataGridRow.cs
- unitconverter.cs
- HtmlInputText.cs
- PolyLineSegment.cs
- BrowsableAttribute.cs
- Int32Converter.cs
- StreamSecurityUpgradeProvider.cs
- ITextView.cs
- InvalidPropValue.cs
- GlobalAllocSafeHandle.cs
- PrintDialog.cs
- CommandBinding.cs
- XmlCDATASection.cs
- Compilation.cs
- NTAccount.cs
- SettingsProperty.cs
- CodeDOMUtility.cs
- TextHidden.cs
- Pens.cs
- AdRotator.cs
- Utils.cs
- ellipse.cs
- SerializationEventsCache.cs
- DataMisalignedException.cs
- SmtpTransport.cs
- BindingContext.cs
- PropertyMapper.cs
- EncryptedPackageFilter.cs
- HwndSourceKeyboardInputSite.cs
- StatusBarPanelClickEvent.cs
- HttpCapabilitiesEvaluator.cs
- RemoteDebugger.cs
- ColorTranslator.cs
- TrackingProfile.cs
- SplineKeyFrames.cs
- ProfileSection.cs
- GenericPrincipal.cs
- Configuration.cs
- SchemaSetCompiler.cs
- CatalogPartChrome.cs
- EntitySetDataBindingList.cs
- StylusPoint.cs
- StorageFunctionMapping.cs
- GlobalDataBindingHandler.cs
- InternalBase.cs
- StreamAsIStream.cs
- ControlAdapter.cs
- EventLevel.cs
- ChtmlCommandAdapter.cs
- TextAutomationPeer.cs
- Base64Stream.cs
- IndexedGlyphRun.cs
- ImpersonationContext.cs
- WizardStepBase.cs
- ListControlDataBindingHandler.cs