Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- FontStretchConverter.cs
- QueryExpr.cs
- FileUpload.cs
- SourceSwitch.cs
- RoutingUtilities.cs
- TableDetailsRow.cs
- DiscreteKeyFrames.cs
- SystemIcmpV6Statistics.cs
- WebServiceParameterData.cs
- GrammarBuilderRuleRef.cs
- Object.cs
- StringPropertyBuilder.cs
- SystemTcpStatistics.cs
- Attributes.cs
- ReadOnlyDataSource.cs
- QueryOutputWriter.cs
- securitymgrsite.cs
- HttpPostedFileWrapper.cs
- ConfigurationProperty.cs
- AssemblyInfo.cs
- BrowsableAttribute.cs
- SqlTriggerAttribute.cs
- MenuBase.cs
- DataFormats.cs
- CompilerResults.cs
- ConnectionManagementElement.cs
- WeakEventManager.cs
- Set.cs
- Soap12FormatExtensions.cs
- NetWebProxyFinder.cs
- ExtentCqlBlock.cs
- ListCollectionView.cs
- EncryptedKeyIdentifierClause.cs
- FileLoadException.cs
- FormsAuthentication.cs
- VoiceSynthesis.cs
- EntityDataSourceUtil.cs
- JsonXmlDataContract.cs
- RoleGroupCollection.cs
- TypeSystemHelpers.cs
- CheckBoxBaseAdapter.cs
- JulianCalendar.cs
- ScriptControlDescriptor.cs
- DrawToolTipEventArgs.cs
- MouseActionConverter.cs
- QueuePropertyVariants.cs
- ExpressionBinding.cs
- EntitySqlQueryState.cs
- StringAnimationUsingKeyFrames.cs
- TemplateComponentConnector.cs
- DynamicFilter.cs
- CodeDefaultValueExpression.cs
- ArrayList.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- ChannelPoolSettings.cs
- GraphicsPath.cs
- Activator.cs
- CurrencyWrapper.cs
- CachedBitmap.cs
- SqlDeflator.cs
- _AutoWebProxyScriptEngine.cs
- FormatterConverter.cs
- XmlDesigner.cs
- Int64Storage.cs
- DbQueryCommandTree.cs
- PnrpPeerResolverBindingElement.cs
- Parser.cs
- MultipleViewPattern.cs
- EncryptedXml.cs
- AlternationConverter.cs
- ColumnClickEvent.cs
- OverflowException.cs
- DataGridViewRowsRemovedEventArgs.cs
- XmlEncApr2001.cs
- DataControlLinkButton.cs
- Helpers.cs
- UnsafeNativeMethodsCLR.cs
- CompilationPass2TaskInternal.cs
- RangeValueProviderWrapper.cs
- SqlExpander.cs
- CommandConverter.cs
- PeerToPeerException.cs
- Renderer.cs
- DescendentsWalker.cs
- Message.cs
- XmlSchemaGroupRef.cs
- IIS7UserPrincipal.cs
- ProtocolsConfiguration.cs
- XamlDesignerSerializationManager.cs
- SpoolingTask.cs
- Publisher.cs
- ResolveNameEventArgs.cs
- RuleDefinitions.cs
- XPathSelectionIterator.cs
- _SslSessionsCache.cs
- XamlUtilities.cs
- CounterCreationData.cs
- XmlAnyAttributeAttribute.cs
- CompiledELinqQueryState.cs
- ServiceOperation.cs