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
- StateValidator.cs
- AssemblyInfo.cs
- SelectionBorderGlyph.cs
- FileLogRecord.cs
- TemplateInstanceAttribute.cs
- URLString.cs
- CalendarKeyboardHelper.cs
- _MultipleConnectAsync.cs
- MappingItemCollection.cs
- RadioButtonStandardAdapter.cs
- DesignOnlyAttribute.cs
- DetailsView.cs
- ProtocolsConfiguration.cs
- RuntimeTrackingProfile.cs
- PropertyItemInternal.cs
- PngBitmapDecoder.cs
- XmlDictionaryWriter.cs
- ResourceAssociationType.cs
- StackSpiller.cs
- UriScheme.cs
- CompiledRegexRunnerFactory.cs
- HtmlInputPassword.cs
- shaperfactoryquerycachekey.cs
- ToolStripDropTargetManager.cs
- _NtlmClient.cs
- TypeSystem.cs
- RSAPKCS1KeyExchangeFormatter.cs
- WebBrowserNavigatedEventHandler.cs
- TemplatePropertyEntry.cs
- TextTreeRootTextBlock.cs
- Bold.cs
- GeometryHitTestParameters.cs
- ObservableCollection.cs
- ProjectionPlan.cs
- ProgressBarAutomationPeer.cs
- assertwrapper.cs
- InternalSafeNativeMethods.cs
- ClonableStack.cs
- AttributeAction.cs
- MergePropertyDescriptor.cs
- CheckBoxField.cs
- OleDbMetaDataFactory.cs
- DirectoryInfo.cs
- InfoCardKeyedHashAlgorithm.cs
- RangeValidator.cs
- TextBoxBase.cs
- DocumentEventArgs.cs
- SafeFreeMibTable.cs
- CellParagraph.cs
- ExtensionFile.cs
- XPathDescendantIterator.cs
- SplineQuaternionKeyFrame.cs
- TextSpanModifier.cs
- TreeViewItemAutomationPeer.cs
- SQLDouble.cs
- DataGridViewDataErrorEventArgs.cs
- LZCodec.cs
- CompilerCollection.cs
- RegexEditorDialog.cs
- rsa.cs
- FixedDocumentSequencePaginator.cs
- WindowsHyperlink.cs
- PeerObject.cs
- HWStack.cs
- SignedInfo.cs
- ErrorEventArgs.cs
- HMACSHA384.cs
- ConditionalDesigner.cs
- Material.cs
- Subset.cs
- RuleElement.cs
- NTAccount.cs
- _NtlmClient.cs
- LinqDataSourceEditData.cs
- ObjectStateManager.cs
- HwndProxyElementProvider.cs
- PenLineJoinValidation.cs
- oledbmetadatacolumnnames.cs
- PageParserFilter.cs
- RadioButtonAutomationPeer.cs
- TransportListener.cs
- DoWorkEventArgs.cs
- XsltException.cs
- Compiler.cs
- ReliabilityContractAttribute.cs
- ScriptReference.cs
- PersonalizationProviderCollection.cs
- Version.cs
- SurrogateEncoder.cs
- RegexGroupCollection.cs
- HelpInfo.cs
- RegexRunnerFactory.cs
- DuplexClientBase.cs
- TextElementCollectionHelper.cs
- TriState.cs
- DynamicPropertyReader.cs
- WmlValidationSummaryAdapter.cs
- MobileErrorInfo.cs
- Console.cs
- CancellationHandler.cs