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
- ServiceModelExtensionCollectionElement.cs
- RewritingPass.cs
- ResourceDefaultValueAttribute.cs
- MethodImplAttribute.cs
- RenderDataDrawingContext.cs
- DataSourceControlBuilder.cs
- Operators.cs
- XmlResolver.cs
- SQLSingleStorage.cs
- SubordinateTransaction.cs
- QilGeneratorEnv.cs
- DispatcherHookEventArgs.cs
- XmlValueConverter.cs
- Brush.cs
- DefaultEvaluationContext.cs
- XmlReaderSettings.cs
- ConvertersCollection.cs
- HashCodeCombiner.cs
- HandleCollector.cs
- Normalization.cs
- HelpProvider.cs
- AsyncInvokeContext.cs
- DeflateStream.cs
- TextBoxAutoCompleteSourceConverter.cs
- SqlDependency.cs
- CompilationUtil.cs
- RemoteWebConfigurationHostStream.cs
- WinOEToolBoxItem.cs
- StreamGeometry.cs
- TimeSpanValidator.cs
- WebPartDescriptionCollection.cs
- LogicalExpressionTypeConverter.cs
- SrgsElementList.cs
- Normalization.cs
- MemoryFailPoint.cs
- _TLSstream.cs
- ListBindingConverter.cs
- EmptyStringExpandableObjectConverter.cs
- ServiceModelTimeSpanValidator.cs
- SqlMetaData.cs
- InvocationExpression.cs
- autovalidator.cs
- AngleUtil.cs
- MetadataCache.cs
- TimeSpanConverter.cs
- XmlILAnnotation.cs
- Accessible.cs
- WindowsFormsEditorServiceHelper.cs
- BmpBitmapEncoder.cs
- Viewport3DVisual.cs
- _TransmitFileOverlappedAsyncResult.cs
- Permission.cs
- CodeTypeDeclarationCollection.cs
- XNodeValidator.cs
- DelayedRegex.cs
- TransformerInfoCollection.cs
- ItemMap.cs
- DataFormat.cs
- SoapReflectionImporter.cs
- CallContext.cs
- OracleSqlParser.cs
- ListBox.cs
- IdentitySection.cs
- ExpressionDumper.cs
- FieldToken.cs
- StaticContext.cs
- _PooledStream.cs
- InvokePatternIdentifiers.cs
- BrowserDefinition.cs
- CollaborationHelperFunctions.cs
- ScrollItemProviderWrapper.cs
- BuiltInPermissionSets.cs
- XmlSerializationWriter.cs
- ToggleButton.cs
- TextElementEnumerator.cs
- DataGridItemCollection.cs
- xsdvalidator.cs
- SQLInt32.cs
- FontStretchConverter.cs
- XmlSchema.cs
- dataprotectionpermission.cs
- EmptyImpersonationContext.cs
- LockCookie.cs
- DataGridViewButtonColumn.cs
- BackStopAuthenticationModule.cs
- WebPartZoneCollection.cs
- ZipIOFileItemStream.cs
- SmtpDateTime.cs
- IdentityReference.cs
- UserPreferenceChangingEventArgs.cs
- MailWebEventProvider.cs
- UpDownEvent.cs
- WeakReferenceKey.cs
- TextFragmentEngine.cs
- RadioButton.cs
- PointIndependentAnimationStorage.cs
- WebRequestModuleElementCollection.cs
- ColumnHeaderConverter.cs
- PbrsForward.cs
- CacheEntry.cs