Click here to Skip to main content
15,891,204 members
Articles / Desktop Programming / Windows Forms

Storm - the world's best IDE framework for .NET

Rate me:
Please Sign up or sign in to vote.
4.96/5 (82 votes)
4 Feb 2010LGPL311 min read 276.3K   6.5K   340  
Create fast, flexible, and extensible IDE applications easily with Storm - it takes nearly no code at all!
//
//    ___ _____ ___  ___ __  __ 
//   / __|_   _/ _ \| _ \  \/  |
//   \__ \ | || (_) |   / |\/| |
//   |___/ |_| \___/|_|_\_|  |_|
// 
//   Storm.TabControl.dll
//   ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
//     Storm.TabControl.dll was created under the LGPL license.
//     It was based on another .dll and evolved from that one.
//     The original .dll was created by Hadi Eskandari.
//
//   What is Storm?
//   ¯¯¯¯¯¯¯¯¯¯¯¯¯¯
//     Storm is a set of dynamic link libraries used in Theodor
//     "Vestras" Storm Kristensen's application "Moonlite".
//     
//
//   Thanks:
//   ¯¯¯¯¯¯¯
//     - Hadi Eskandari for creating and publishing the library.
//
//
//   Copyright (c) Theodor "Vestras" Storm Kristensen 2009
//   ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
//

namespace Storm.TabControl
{
    using System;

    #region TabStripItemMouseEventArgs
    public class TabStripItemMouseEventArgs : EventArgs
    {
        public TabStripItemMouseEventArgs(TabStripItem item)
        {
            _item = item;
        }

        private TabStripItem _item;
        public TabStripItem Item
        {
            get { return _item; }
            set { _item = value; }
        }
    }
    #endregion

    #region TabStripItemClosingEventArgs
    public class TabStripItemClosingEventArgs : EventArgs
    {
        public TabStripItemClosingEventArgs(TabStripItem item)
        {
            _item = item;
        }

        private bool _cancel = false;
        private TabStripItem _item;

        public TabStripItem Item
        {
            get { return _item; }
            set { _item = value; }
        }

        public bool Cancel
        {
            get { return _cancel; }
            set { _cancel = value; }
        }

    }
    #endregion

    #region TabStripItemChangedEventArgs
    public class TabStripItemChangedEventArgs : EventArgs
    {
        TabStripItem itm;
        TabStripItemChangeTypes changeType;

        public TabStripItemChangedEventArgs(TabStripItem item, TabStripItemChangeTypes type)
        {
            changeType = type;
            itm = item;
        }

        public TabStripItemChangeTypes ChangeType
        {
            get { return changeType; }
        }

        public TabStripItem Item
        {
            get { return itm; }
        }
    }
    #endregion

    public delegate void SelectedItemChangedHandler(TabStripItemMouseEventArgs e);
    public delegate void TabStripItemMouseEnterHandler(TabStripItemMouseEventArgs e);
    public delegate void TabStripItemMouseLeaveHandler(TabStripItemMouseEventArgs e);
    
    public delegate void TabStripItemChangedHandler(TabStripItemChangedEventArgs e);
    public delegate void TabStripItemClosingHandler(TabStripItemClosingEventArgs e);
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The GNU Lesser General Public License (LGPLv3)



Comments and Discussions