You've already forked linux-packaging-mono
Imported Upstream version 4.6.0.125
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
This commit is contained in:
parent
a569aebcfd
commit
e79aa3c0ed
@@ -0,0 +1,74 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user