DesignerActionUIStateChangeEventArgs.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / CompMod / System / ComponentModel / Design / DesignerActionUIStateChangeEventArgs.cs / 1 / DesignerActionUIStateChangeEventArgs.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

namespace System.ComponentModel.Design { 
    using System.ComponentModel; 
    using System;
    using Microsoft.Win32; 

    /// 
    /// 
    ///     This EventArgs class is used by the DesignerActionService to signify 
    ///     that there has been a change in DesignerActionLists (added or removed)
    ///     on the related object. 
    ///  
    public class DesignerActionUIStateChangeEventArgs : EventArgs {
 
        private object relatedObject;
        private DesignerActionUIStateChangeType changeType;//type of change

        ///  
        /// 
        ///     Constructor that requires the object in question, the type of change 
        ///     and the remaining actionlists left for the object. 
        ///     on the related object.
        ///  
        public DesignerActionUIStateChangeEventArgs(object relatedObject, DesignerActionUIStateChangeType changeType) {
            this.relatedObject = relatedObject;
            this.changeType = changeType;
        } 

        ///  
        ///  
        ///     The type of changed that caused the related event
        ///     to be thrown. 
        /// 
        public DesignerActionUIStateChangeType ChangeType {
            get {
                return changeType; 
            }
        } 
 
        /// 
        ///  
        ///     The object this change is related to.
        /// 
        public object RelatedObject {
            get { 
                return relatedObject;
            } 
        } 

    } 
}



// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
                        

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