ContainerSelectorActiveEvent.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 / WinForms / System / WinForms / Design / ContainerSelectorActiveEvent.cs / 1 / ContainerSelectorActiveEvent.cs

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

namespace System.Windows.Forms.Design { 
    using System.Diagnostics; 
    using System;
    using System.ComponentModel; 
    using Microsoft.Win32;

    /// 
    ///  
    /// 
    /// Provides data for the  
    /// event. 
    /// 
    internal class ContainerSelectorActiveEventArgs : EventArgs { 

        private readonly object component;
        private readonly ContainerSelectorActiveEventArgsType eventType;
 
        /// 
        ///  
        ///     
        ///       Initializes a new instance of the 'ContainerSelectorActiveEventArgs'
        ///       class. 
        ///    
        /// 
        public ContainerSelectorActiveEventArgs(object component) : this(component, ContainerSelectorActiveEventArgsType.Mouse) {
        } 

        ///  
        ///  
        ///    
        ///       Initializes a new instance of the 'ContainerSelectorActiveEventArgs' 
        ///       class.
        ///    
        /// 
        public ContainerSelectorActiveEventArgs(object component, ContainerSelectorActiveEventArgsType eventType) { 
            this.component = component;
            this.eventType = eventType; 
        } 

#if UNUSED 
        // These guys are not called, which makes this class pretty useless. Keeping them around just in case.

        /// 
        ///  
        ///    
        ///       Gets or sets the 
        ///       component related to the event. 
        ///    
        ///  
        public object Component {
            get {
                return component;
            } 
        }
 
        ///  
        /// 
        ///  
        public ContainerSelectorActiveEventArgsType EventType {
            get {
                return eventType;
            } 
        }
#endif 
    } 
}

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