TabControlCancelEvent.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / TabControlCancelEvent.cs / 1305376 / TabControlCancelEvent.cs

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

/* 
 */ 

namespace System.Windows.Forms { 

    using System.Diagnostics;

    using System; 
    using System.ComponentModel;
    using System.Drawing; 
    using Microsoft.Win32; 

 
    /// 
    /// 
    ///    
    ///    Provides data for the , 
    ///    
    ///    event. 
    /// 
    ///    
    ///  
    public class TabControlCancelEventArgs : CancelEventArgs {
        private TabPage tabPage;
        private int tabPageIndex;
        private TabControlAction action; 

 
        ///  
        public TabControlCancelEventArgs(TabPage tabPage, int tabPageIndex, bool cancel, TabControlAction action)
        : base(cancel) { 
            this.tabPage = tabPage;
            this.tabPageIndex = tabPageIndex;
            this.action = action;
        } 

        ///  
        ///  
        ///    
        ///       Stores the referemce to the tabpage that is undergoing the TabControl event. 
        ///
        ///    
        /// 
        public TabPage TabPage { 
            get {
                return tabPage; 
            } 
        }
 
        /// 
        /// 
        ///    
        ///        Stores the index to the tabpage that is undergoing the TabControl event. 
        ///
        ///     
        ///  
        public int TabPageIndex {
            get { 
                return tabPageIndex;
            }
        }
 
        /// 
        ///  
        ///     
        ///        Stores the TabControl action which instigated the TabControl event.
        /// 
        ///    
        /// 
        public TabControlAction Action {
            get { 
                return action;
            } 
        } 
    }
} 

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

/* 
 */ 

namespace System.Windows.Forms { 

    using System.Diagnostics;

    using System; 
    using System.ComponentModel;
    using System.Drawing; 
    using Microsoft.Win32; 

 
    /// 
    /// 
    ///    
    ///    Provides data for the , 
    ///    
    ///    event. 
    /// 
    ///    
    ///  
    public class TabControlCancelEventArgs : CancelEventArgs {
        private TabPage tabPage;
        private int tabPageIndex;
        private TabControlAction action; 

 
        ///  
        public TabControlCancelEventArgs(TabPage tabPage, int tabPageIndex, bool cancel, TabControlAction action)
        : base(cancel) { 
            this.tabPage = tabPage;
            this.tabPageIndex = tabPageIndex;
            this.action = action;
        } 

        ///  
        ///  
        ///    
        ///       Stores the referemce to the tabpage that is undergoing the TabControl event. 
        ///
        ///    
        /// 
        public TabPage TabPage { 
            get {
                return tabPage; 
            } 
        }
 
        /// 
        /// 
        ///    
        ///        Stores the index to the tabpage that is undergoing the TabControl event. 
        ///
        ///     
        ///  
        public int TabPageIndex {
            get { 
                return tabPageIndex;
            }
        }
 
        /// 
        ///  
        ///     
        ///        Stores the TabControl action which instigated the TabControl event.
        /// 
        ///    
        /// 
        public TabControlAction Action {
            get { 
                return action;
            } 
        } 
    }
} 

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