/
RefreshEventArgs.cs
40 lines (36 loc) · 1.38 KB
/
RefreshEventArgs.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace System.ComponentModel
{
/// <summary>
/// Provides data for the <see cref='System.ComponentModel.TypeDescriptor.Refresh(object)'/> event.
/// </summary>
public class RefreshEventArgs : EventArgs
{
/// <summary>
/// Initializes a new instance of the <see cref='System.ComponentModel.RefreshEventArgs'/> class with
/// the component that has changed.
/// </summary>
public RefreshEventArgs(object? componentChanged)
{
ComponentChanged = componentChanged;
TypeChanged = componentChanged?.GetType();
}
/// <summary>
/// Initializes a new instance of the <see cref='System.ComponentModel.RefreshEventArgs'/> class with
/// the type of component that has changed.
/// </summary>
public RefreshEventArgs(Type? typeChanged)
{
TypeChanged = typeChanged;
}
/// <summary>
/// Gets the component that has changed its properties, events, or extenders.
/// </summary>
public object? ComponentChanged { get; }
/// <summary>
/// Gets the type that has changed its properties, or events.
/// </summary>
public Type? TypeChanged { get; }
}
}