ActiveDesignSurfaceEvent.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / Host / ActiveDesignSurfaceEvent.cs / 1 / ActiveDesignSurfaceEvent.cs

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

namespace System.ComponentModel.Design { 
 
    /// 
    ///     An event handler for the ActiveDesignSurfaceChanged event. 
    /// 
    public delegate void ActiveDesignSurfaceChangedEventHandler(object sender, ActiveDesignSurfaceChangedEventArgs e);

    ///  
    ///     The event args for the ActiveDesignSurface event.
    ///  
    public class ActiveDesignSurfaceChangedEventArgs : EventArgs { 

        private DesignSurface _oldSurface; 
        private DesignSurface _newSurface;

        /// 
        ///     Creates a new ActiveDesignSurfaceChangedEventArgs instance. 
        /// 
        public ActiveDesignSurfaceChangedEventArgs(DesignSurface oldSurface, DesignSurface newSurface) { 
            _oldSurface = oldSurface; 
            _newSurface = newSurface;
        } 

        /// 
        ///     Gets the design surface that is losing activation.
        ///  
        public DesignSurface OldSurface {
            get { 
                return _oldSurface; 
            }
        } 

        /// 
        ///     Gets the design surface that is gaining activation.
        ///  
        public DesignSurface NewSurface {
            get { 
                return _newSurface; 
            }
        } 
    }
}

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