86 lines
2.8 KiB
C#
86 lines
2.8 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace System.ComponentModel.Design
|
|
{
|
|
/// <summary>Provides data for the <see cref="E:System.ComponentModel.Design.IComponentChangeService.ComponentChanged" /> event. This class cannot be inherited.</summary>
|
|
// Token: 0x0200003E RID: 62
|
|
[ComVisible(true)]
|
|
public sealed class ComponentChangedEventArgs : EventArgs
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.Design.ComponentChangedEventArgs" /> class.</summary>
|
|
/// <param name="component">The component that was changed. </param>
|
|
/// <param name="member">A <see cref="T:System.ComponentModel.MemberDescriptor" /> that represents the member that was changed. </param>
|
|
/// <param name="oldValue">The old value of the changed member. </param>
|
|
/// <param name="newValue">The new value of the changed member. </param>
|
|
// Token: 0x060002A1 RID: 673 RVA: 0x0000966C File Offset: 0x0000786C
|
|
public ComponentChangedEventArgs(object component, MemberDescriptor member, object oldValue, object newValue)
|
|
{
|
|
this.component = component;
|
|
this.member = member;
|
|
this.oldValue = oldValue;
|
|
this.newValue = newValue;
|
|
}
|
|
|
|
/// <summary>Gets the component that was modified.</summary>
|
|
/// <returns>An <see cref="T:System.Object" /> that represents the component that was modified.</returns>
|
|
// Token: 0x170000BE RID: 190
|
|
// (get) Token: 0x060002A2 RID: 674 RVA: 0x00009694 File Offset: 0x00007894
|
|
public object Component
|
|
{
|
|
get
|
|
{
|
|
return this.component;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the member that has been changed.</summary>
|
|
/// <returns>A <see cref="T:System.ComponentModel.MemberDescriptor" /> that indicates the member that has been changed.</returns>
|
|
// Token: 0x170000BF RID: 191
|
|
// (get) Token: 0x060002A3 RID: 675 RVA: 0x0000969C File Offset: 0x0000789C
|
|
public MemberDescriptor Member
|
|
{
|
|
get
|
|
{
|
|
return this.member;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the new value of the changed member.</summary>
|
|
/// <returns>The new value of the changed member. This property can be null.</returns>
|
|
// Token: 0x170000C0 RID: 192
|
|
// (get) Token: 0x060002A4 RID: 676 RVA: 0x000096A4 File Offset: 0x000078A4
|
|
public object NewValue
|
|
{
|
|
get
|
|
{
|
|
return this.oldValue;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the old value of the changed member.</summary>
|
|
/// <returns>The old value of the changed member. This property can be null.</returns>
|
|
// Token: 0x170000C1 RID: 193
|
|
// (get) Token: 0x060002A5 RID: 677 RVA: 0x000096AC File Offset: 0x000078AC
|
|
public object OldValue
|
|
{
|
|
get
|
|
{
|
|
return this.newValue;
|
|
}
|
|
}
|
|
|
|
// Token: 0x040000BA RID: 186
|
|
private object component;
|
|
|
|
// Token: 0x040000BB RID: 187
|
|
private MemberDescriptor member;
|
|
|
|
// Token: 0x040000BC RID: 188
|
|
private object oldValue;
|
|
|
|
// Token: 0x040000BD RID: 189
|
|
private object newValue;
|
|
}
|
|
}
|