Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / CompMod / System / ComponentModel / RefreshEventArgs.cs / 1 / RefreshEventArgs.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.ComponentModel {
using System;
using System.Diagnostics;
using System.Security.Permissions;
///
///
/// Provides data for the event.
///
///
[HostProtection(SharedState = true)]
public class RefreshEventArgs : EventArgs {
private object componentChanged;
private Type typeChanged;
///
///
/// Initializes a new instance of the class with
/// the component that has
/// changed.
///
///
public RefreshEventArgs(object componentChanged) {
this.componentChanged = componentChanged;
this.typeChanged = componentChanged.GetType();
}
///
///
/// Initializes a new instance of the class with
/// the type
/// of component that has changed.
///
///
public RefreshEventArgs(Type typeChanged) {
this.typeChanged = typeChanged;
}
///
///
/// Gets the component that has changed
/// its properties, events, or
/// extenders.
///
///
public object ComponentChanged {
get {
return componentChanged;
}
}
///
///
/// Gets the type that has changed its properties, or events.
///
///
public Type TypeChanged {
get {
return typeChanged;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.ComponentModel {
using System;
using System.Diagnostics;
using System.Security.Permissions;
///
///
/// Provides data for the event.
///
///
[HostProtection(SharedState = true)]
public class RefreshEventArgs : EventArgs {
private object componentChanged;
private Type typeChanged;
///
///
/// Initializes a new instance of the class with
/// the component that has
/// changed.
///
///
public RefreshEventArgs(object componentChanged) {
this.componentChanged = componentChanged;
this.typeChanged = componentChanged.GetType();
}
///
///
/// Initializes a new instance of the class with
/// the type
/// of component that has changed.
///
///
public RefreshEventArgs(Type typeChanged) {
this.typeChanged = typeChanged;
}
///
///
/// Gets the component that has changed
/// its properties, events, or
/// extenders.
///
///
public object ComponentChanged {
get {
return componentChanged;
}
}
///
///
/// Gets the type that has changed its properties, or events.
///
///
public Type TypeChanged {
get {
return typeChanged;
}
}
}
}
// 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
- KeyboardDevice.cs
- HttpProfileGroupBase.cs
- ChangePassword.cs
- SiteIdentityPermission.cs
- TdsParserStateObject.cs
- DataControlImageButton.cs
- StreamResourceInfo.cs
- ToolStripArrowRenderEventArgs.cs
- AstTree.cs
- processwaithandle.cs
- NameTable.cs
- TextEditorParagraphs.cs
- TerminatorSinks.cs
- ConversionValidationRule.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- UserControlParser.cs
- DefaultAssemblyResolver.cs
- Assert.cs
- ActivityMarkupSerializer.cs
- XmlSchemaGroupRef.cs
- BindingSource.cs
- KerberosSecurityTokenProvider.cs
- ToolTipAutomationPeer.cs
- TextDecorationCollection.cs
- SimpleExpression.cs
- SQLMoneyStorage.cs
- Matrix3D.cs
- CodeDOMProvider.cs
- DnsPermission.cs
- COM2IProvidePropertyBuilderHandler.cs
- TextTreeUndo.cs
- NetSectionGroup.cs
- ExpressionParser.cs
- OdbcParameterCollection.cs
- ILGen.cs
- UIElementIsland.cs
- FocusChangedEventArgs.cs
- TableParagraph.cs
- CompilerCollection.cs
- VectorCollection.cs
- SapiAttributeParser.cs
- SQlBooleanStorage.cs
- EpmContentDeSerializerBase.cs
- ThaiBuddhistCalendar.cs
- connectionpool.cs
- XmlCharCheckingReader.cs
- CellIdBoolean.cs
- EventLogWatcher.cs
- HttpProcessUtility.cs
- LinqDataSourceSelectEventArgs.cs
- XmlBinaryWriterSession.cs
- PathTooLongException.cs
- CheckBox.cs
- shaperfactory.cs
- XsltCompileContext.cs
- FontClient.cs
- FixedSOMTextRun.cs
- InternalCache.cs
- DbMetaDataCollectionNames.cs
- GradientSpreadMethodValidation.cs
- Converter.cs
- HandlerBase.cs
- HwndSubclass.cs
- RegexGroupCollection.cs
- PermissionSetEnumerator.cs
- HybridDictionary.cs
- Registry.cs
- TrustManagerPromptUI.cs
- ObjectListCommandCollection.cs
- DataServiceBehavior.cs
- MediaEntryAttribute.cs
- RoleService.cs
- BaseDataListComponentEditor.cs
- SoapWriter.cs
- VisualCollection.cs
- DrawingContextDrawingContextWalker.cs
- DecodeHelper.cs
- CookieProtection.cs
- BindUriHelper.cs
- TablePattern.cs
- WindowsListViewGroup.cs
- Size.cs
- XLinq.cs
- Point3DIndependentAnimationStorage.cs
- NewExpression.cs
- NullableBoolConverter.cs
- Certificate.cs
- ValidatorCollection.cs
- ReadOnlyDictionary.cs
- RtfNavigator.cs
- DataSourceHelper.cs
- ScriptReference.cs
- OleDbFactory.cs
- TypedReference.cs
- PropertyChangeTracker.cs
- AsyncOperationManager.cs
- CodeNamespaceImport.cs
- XmlAttributeAttribute.cs
- BrowserCapabilitiesFactory.cs
- Encoder.cs