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
- XsltConvert.cs
- uribuilder.cs
- ObjectStateManagerMetadata.cs
- UdpDiscoveryMessageFilter.cs
- DataTableMappingCollection.cs
- EmptyQuery.cs
- DynamicILGenerator.cs
- TransactionInterop.cs
- SystemIPInterfaceStatistics.cs
- DataGridColumn.cs
- PathSegment.cs
- WebBrowsableAttribute.cs
- HwndPanningFeedback.cs
- StringSorter.cs
- RoutedUICommand.cs
- DataSpaceManager.cs
- TdsParserSafeHandles.cs
- EventSetter.cs
- ListenerChannelContext.cs
- DataSet.cs
- ReadOnlyDictionary.cs
- EventRecordWrittenEventArgs.cs
- Keywords.cs
- TextEditorThreadLocalStore.cs
- WithStatement.cs
- ByteStreamMessageEncoderFactory.cs
- FormParameter.cs
- GestureRecognitionResult.cs
- RuntimeConfig.cs
- PageHandlerFactory.cs
- objectresult_tresulttype.cs
- ErrorProvider.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- OrderedHashRepartitionEnumerator.cs
- PixelShader.cs
- DropShadowEffect.cs
- PseudoWebRequest.cs
- HierarchicalDataBoundControl.cs
- EdgeModeValidation.cs
- LockedBorderGlyph.cs
- RangeBase.cs
- IFormattable.cs
- SmtpFailedRecipientException.cs
- TextDecorationCollection.cs
- CompilerTypeWithParams.cs
- SubMenuStyle.cs
- SQLByteStorage.cs
- xmlfixedPageInfo.cs
- HttpCacheVaryByContentEncodings.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- UInt64Storage.cs
- EventDescriptor.cs
- WebPartEditorCancelVerb.cs
- TraceUtils.cs
- PersonalizablePropertyEntry.cs
- ColorAnimation.cs
- QilTernary.cs
- ExceptionHelpers.cs
- CheckBox.cs
- TemplateColumn.cs
- HttpDebugHandler.cs
- ParserHooks.cs
- MDIWindowDialog.cs
- LazyLoadBehavior.cs
- BamlRecordHelper.cs
- LoadGrammarCompletedEventArgs.cs
- ListViewTableCell.cs
- MediaTimeline.cs
- PropertyEntry.cs
- listitem.cs
- TabItemAutomationPeer.cs
- ScrollChrome.cs
- IPPacketInformation.cs
- DataContractAttribute.cs
- SendMessageChannelCache.cs
- WmlCommandAdapter.cs
- DragAssistanceManager.cs
- Attributes.cs
- XomlCompiler.cs
- UnlockCardRequest.cs
- TableLayoutPanelCellPosition.cs
- MasterPageCodeDomTreeGenerator.cs
- MessageLogger.cs
- sqlcontext.cs
- PersonalizationStateQuery.cs
- DeploymentSection.cs
- Sql8ExpressionRewriter.cs
- RemoteArgument.cs
- FixedSOMPage.cs
- GridViewEditEventArgs.cs
- BamlMapTable.cs
- NetMsmqBindingCollectionElement.cs
- DetailsView.cs
- HandlerBase.cs
- TextEditorCharacters.cs
- DataGridItemCollection.cs
- RangeValidator.cs
- XamlStyleSerializer.cs
- ChangeBlockUndoRecord.cs
- GPPOINTF.cs