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
- LinqExpressionNormalizer.cs
- OdbcError.cs
- Operand.cs
- HtmlContainerControl.cs
- XmlSerializerSection.cs
- Stroke.cs
- ControllableStoryboardAction.cs
- TabItemAutomationPeer.cs
- EventMappingSettings.cs
- ViewLoader.cs
- PasswordDeriveBytes.cs
- PathSegmentCollection.cs
- WaitHandleCannotBeOpenedException.cs
- nulltextcontainer.cs
- HwndSubclass.cs
- SchemaImporter.cs
- XmlSchemaObjectTable.cs
- CorrelationManager.cs
- HttpDictionary.cs
- path.cs
- HttpListenerRequestUriBuilder.cs
- RC2.cs
- IdentityValidationException.cs
- NameObjectCollectionBase.cs
- ValueTypeFixupInfo.cs
- SecurityToken.cs
- OdbcErrorCollection.cs
- XsdBuilder.cs
- QuerySetOp.cs
- RoleServiceManager.cs
- Control.cs
- XmlSchemaObjectCollection.cs
- ImageListDesigner.cs
- CharacterBuffer.cs
- HostUtils.cs
- DataBindingList.cs
- AspCompat.cs
- ListViewEditEventArgs.cs
- AsyncStreamReader.cs
- DataBindingExpressionBuilder.cs
- GridViewColumnCollection.cs
- ToolStripItemRenderEventArgs.cs
- SlipBehavior.cs
- DynamicQueryableWrapper.cs
- EntityDescriptor.cs
- TextElementEnumerator.cs
- milexports.cs
- OleDbErrorCollection.cs
- TextSelectionHelper.cs
- CodeValidator.cs
- DropTarget.cs
- SemaphoreFullException.cs
- GridView.cs
- BitmapDownload.cs
- DataColumnChangeEvent.cs
- FormParameter.cs
- DeclarationUpdate.cs
- MimeMapping.cs
- AgileSafeNativeMemoryHandle.cs
- WindowsFormsSectionHandler.cs
- AdjustableArrowCap.cs
- WebPartTransformer.cs
- DependencyPropertyKey.cs
- PropertyDescriptorComparer.cs
- OleDbCommandBuilder.cs
- TreeNodeBinding.cs
- NetCodeGroup.cs
- SelectingProviderEventArgs.cs
- ValidationRuleCollection.cs
- XPathNodeIterator.cs
- IndexingContentUnit.cs
- FloaterBaseParaClient.cs
- FontEmbeddingManager.cs
- DataGridLinkButton.cs
- CommonRemoteMemoryBlock.cs
- Configuration.cs
- XomlCompilerHelpers.cs
- RuleSettingsCollection.cs
- DefinitionBase.cs
- ObjectResult.cs
- ContainerParaClient.cs
- CacheChildrenQuery.cs
- TextElement.cs
- DATA_BLOB.cs
- RecordManager.cs
- DataGridRelationshipRow.cs
- XmlDataSourceNodeDescriptor.cs
- HotCommands.cs
- InternalSafeNativeMethods.cs
- ExpressionBuilder.cs
- FileStream.cs
- InArgumentConverter.cs
- ConfigurationElementCollection.cs
- odbcmetadatacolumnnames.cs
- FileNotFoundException.cs
- ConfigurationErrorsException.cs
- DocumentSchemaValidator.cs
- ToolBarOverflowPanel.cs
- LongPath.cs
- SqlGatherProducedAliases.cs