e79aa3c0ed
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
75 lines
2.3 KiB
C#
75 lines
2.3 KiB
C#
//------------------------------------------------------------------------------
|
|
// <copyright file="RefreshEventArgs.cs" company="Microsoft">
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// </copyright>
|
|
//------------------------------------------------------------------------------
|
|
|
|
/*
|
|
*/
|
|
namespace System.ComponentModel {
|
|
|
|
using System;
|
|
using System.Diagnostics;
|
|
using System.Security.Permissions;
|
|
|
|
/// <devdoc>
|
|
/// <para>
|
|
/// Provides data for the <see cref='System.ComponentModel.TypeDescriptor.Refresh'/> event.
|
|
/// </para>
|
|
/// </devdoc>
|
|
[HostProtection(SharedState = true)]
|
|
public class RefreshEventArgs : EventArgs {
|
|
|
|
private object componentChanged;
|
|
private Type typeChanged;
|
|
|
|
/// <devdoc>
|
|
/// <para>
|
|
/// Initializes a new instance of the <see cref='System.ComponentModel.RefreshEventArgs'/> class with
|
|
/// the component that has
|
|
/// changed.
|
|
/// </para>
|
|
/// </devdoc>
|
|
public RefreshEventArgs(object componentChanged) {
|
|
this.componentChanged = componentChanged;
|
|
this.typeChanged = componentChanged.GetType();
|
|
}
|
|
|
|
/// <devdoc>
|
|
/// <para>
|
|
/// Initializes a new instance of the <see cref='System.ComponentModel.RefreshEventArgs'/> class with
|
|
/// the type
|
|
/// of component that has changed.
|
|
/// </para>
|
|
/// </devdoc>
|
|
public RefreshEventArgs(Type typeChanged) {
|
|
this.typeChanged = typeChanged;
|
|
}
|
|
|
|
/// <devdoc>
|
|
/// <para>
|
|
/// Gets the component that has changed
|
|
/// its properties, events, or
|
|
/// extenders.
|
|
/// </para>
|
|
/// </devdoc>
|
|
public object ComponentChanged {
|
|
get {
|
|
return componentChanged;
|
|
}
|
|
}
|
|
|
|
/// <devdoc>
|
|
/// <para>
|
|
/// Gets the type that has changed its properties, or events.
|
|
/// </para>
|
|
/// </devdoc>
|
|
public Type TypeChanged {
|
|
get {
|
|
return typeChanged;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|