using System;
using System.Runtime.InteropServices;
namespace System.ComponentModel.Design
{
/// Provides data for the event.
// Token: 0x02000041 RID: 65
[ComVisible(true)]
public class ComponentRenameEventArgs : EventArgs
{
/// Initializes a new instance of the class.
/// The component to be renamed.
/// The old name of the component.
/// The new name of the component.
// Token: 0x060002AB RID: 683 RVA: 0x000096F4 File Offset: 0x000078F4
public ComponentRenameEventArgs(object component, string oldName, string newName)
{
this.component = component;
this.oldName = oldName;
this.newName = newName;
}
/// Gets the component that is being renamed.
/// The component that is being renamed.
// Token: 0x170000C5 RID: 197
// (get) Token: 0x060002AC RID: 684 RVA: 0x00009714 File Offset: 0x00007914
public object Component
{
get
{
return this.component;
}
}
/// Gets the name of the component after the rename event.
/// The name of the component after the rename event.
// Token: 0x170000C6 RID: 198
// (get) Token: 0x060002AD RID: 685 RVA: 0x0000971C File Offset: 0x0000791C
public virtual string NewName
{
get
{
return this.newName;
}
}
/// Gets the name of the component before the rename event.
/// The previous name of the component.
// Token: 0x170000C7 RID: 199
// (get) Token: 0x060002AE RID: 686 RVA: 0x00009724 File Offset: 0x00007924
public virtual string OldName
{
get
{
return this.oldName;
}
}
// Token: 0x040000C1 RID: 193
private object component;
// Token: 0x040000C2 RID: 194
private string oldName;
// Token: 0x040000C3 RID: 195
private string newName;
}
}