ComponentRenameEvent.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CompMod / System / ComponentModel / Design / ComponentRenameEvent.cs / 1 / ComponentRenameEvent.cs

                            //------------------------------------------------------------------------------ 
// 
//     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;
        } 
    }
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------ 
// 
//     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;
        } 
    }
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.

                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK