//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//------------------------------------------------------------------------------
/*
*/
namespace System.ComponentModel.Design {
using Microsoft.Win32;
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Security.Permissions;
///
/// Provides data for the event.
///
[HostProtection(SharedState = true)]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.InheritanceDemand, Name="FullTrust")]
[System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Name="FullTrust")]
public class ComponentRenameEventArgs : EventArgs {
private object component;
private string oldName;
private string newName;
///
///
/// Gets or sets the component that is being renamed.
///
///
public object Component {
get {
return component;
}
}
///
///
/// Gets or
/// sets the name of the component before the rename.
///
///
public virtual string OldName {
get {
return oldName;
}
}
///
///
/// Gets or
/// sets the current name of the component.
///
///
public virtual string NewName {
get {
return newName;
}
}
///
///
/// Initializes a new instance of the
/// class.
///
///
public ComponentRenameEventArgs(object component, string oldName, string newName) {
this.oldName = oldName;
this.newName = newName;
this.component = component;
}
}
}