ComponentChangedEvent.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / CompMod / System / ComponentModel / Design / ComponentChangedEvent.cs / 1 / ComponentChangedEvent.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.LinkDemand, Name="FullTrust")]
    public sealed class ComponentChangedEventArgs : EventArgs {
 
        private object component;
        private MemberDescriptor member; 
        private object oldValue; 
        private object newValue;
 
        /// 
        ///    
        ///       Gets or sets the component that is the cause of this event.
        ///     
        /// 
        public object Component { 
            get { 
                return component;
            } 
        }

        /// 
        ///     
        ///       Gets or sets the member that is about to change.
        ///     
        ///  
        public MemberDescriptor Member {
            get { 
                return member;
            }
        }
 
        /// 
        ///     
        ///       Gets or sets the new value of the changed member. 
        ///    
        ///  
        public object NewValue {
            get {
                return newValue;
            } 
        }
 
        ///  
        ///    
        ///       Gets or sets the old value of the changed member. 
        ///    
        /// 
        public object OldValue {
            get { 
                return oldValue;
            } 
        } 

        ///  
        /// Initializes a new instance of the  class.
        /// 
        public ComponentChangedEventArgs(object component, MemberDescriptor member, object oldValue, object newValue) {
            this.component = component; 
            this.member = member;
            this.oldValue = oldValue; 
            this.newValue = newValue; 
        }
    } 

}

// 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.LinkDemand, Name="FullTrust")]
    public sealed class ComponentChangedEventArgs : EventArgs {
 
        private object component;
        private MemberDescriptor member; 
        private object oldValue; 
        private object newValue;
 
        /// 
        ///    
        ///       Gets or sets the component that is the cause of this event.
        ///     
        /// 
        public object Component { 
            get { 
                return component;
            } 
        }

        /// 
        ///     
        ///       Gets or sets the member that is about to change.
        ///     
        ///  
        public MemberDescriptor Member {
            get { 
                return member;
            }
        }
 
        /// 
        ///     
        ///       Gets or sets the new value of the changed member. 
        ///    
        ///  
        public object NewValue {
            get {
                return newValue;
            } 
        }
 
        ///  
        ///    
        ///       Gets or sets the old value of the changed member. 
        ///    
        /// 
        public object OldValue {
            get { 
                return oldValue;
            } 
        } 

        ///  
        /// Initializes a new instance of the  class.
        /// 
        public ComponentChangedEventArgs(object component, MemberDescriptor member, object oldValue, object newValue) {
            this.component = component; 
            this.member = member;
            this.oldValue = oldValue; 
            this.newValue = newValue; 
        }
    } 

}

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