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
- ConnectionsZone.cs
- Application.cs
- WindowsAuthenticationModule.cs
- ArraySegment.cs
- TypeConverterAttribute.cs
- HttpConfigurationContext.cs
- RectKeyFrameCollection.cs
- DataError.cs
- AutoCompleteStringCollection.cs
- WorkflowInlining.cs
- AnonymousIdentificationModule.cs
- QilSortKey.cs
- ServiceNameCollection.cs
- TransformationRules.cs
- WebErrorHandler.cs
- ToolStripDropDownClosedEventArgs.cs
- PropertyGroupDescription.cs
- SecurityElement.cs
- ForceCopyBuildProvider.cs
- SafeRightsManagementQueryHandle.cs
- PartitionResolver.cs
- VirtualPath.cs
- Codec.cs
- DataBinder.cs
- DataTable.cs
- _BaseOverlappedAsyncResult.cs
- DiscoveryVersion.cs
- ProgressiveCrcCalculatingStream.cs
- FastEncoder.cs
- CDSsyncETWBCLProvider.cs
- QueryAccessibilityHelpEvent.cs
- HtmlElementCollection.cs
- XPathSelfQuery.cs
- RegistryConfigurationProvider.cs
- EllipseGeometry.cs
- TreeNodeEventArgs.cs
- FusionWrap.cs
- TraceEventCache.cs
- DbConnectionHelper.cs
- PerCallInstanceContextProvider.cs
- TextTrailingWordEllipsis.cs
- TextServicesDisplayAttribute.cs
- ByteAnimationBase.cs
- EditorZone.cs
- InputReportEventArgs.cs
- SubclassTypeValidator.cs
- NetSectionGroup.cs
- MulticastNotSupportedException.cs
- CompositionTarget.cs
- ThreadExceptionDialog.cs
- SendParametersContent.cs
- DataGridCellsPanel.cs
- RoutedEventValueSerializer.cs
- ConfigurationPropertyAttribute.cs
- ConfigurationStrings.cs
- LayoutEditorPart.cs
- MatrixAnimationUsingKeyFrames.cs
- DocumentAutomationPeer.cs
- BamlRecordWriter.cs
- ConnectionProviderAttribute.cs
- StrokeRenderer.cs
- BaseHashHelper.cs
- SimpleWorkerRequest.cs
- GeneralTransform.cs
- HideDisabledControlAdapter.cs
- CssClassPropertyAttribute.cs
- HashMembershipCondition.cs
- Point.cs
- UpdateTracker.cs
- WeakReadOnlyCollection.cs
- FixedTextView.cs
- PerformanceCounterManager.cs
- FactoryMaker.cs
- NetSectionGroup.cs
- CopyOfAction.cs
- XmlElementAttribute.cs
- InputElement.cs
- FragmentQueryProcessor.cs
- SoapReflectionImporter.cs
- ArgumentNullException.cs
- PasswordTextContainer.cs
- BlobPersonalizationState.cs
- WmlValidationSummaryAdapter.cs
- RunClient.cs
- PropertyState.cs
- AssemblyLoader.cs
- ConfigViewGenerator.cs
- RunClient.cs
- XmlSchemaSimpleContentRestriction.cs
- TextTreeRootNode.cs
- MonthCalendar.cs
- CaseInsensitiveComparer.cs
- DefaultTraceListener.cs
- PrinterUnitConvert.cs
- ReachSerializer.cs
- DbgUtil.cs
- ApplicationActivator.cs
- TableSectionStyle.cs
- SizeAnimationUsingKeyFrames.cs
- ThreadStaticAttribute.cs