SelectEventArgs.h

#pragma once


namespace Core
{
    ref class Distinction;


    /// 選択イベント
    public ref class SelectEventArgs : public System::EventArgs
    {
    // Construction --------------------------------------------------------
    public:
        SelectEventArgs( Distinction^ selection ) :
            m_selection( selection )
        {
        }


    // Attribute ===========================================================
    private:
        Distinction^ m_selection;  ///< 選択されたもの


    // Property ------------------------------------------------------------
    public:
        /// 選択されたもの
        property Distinction^ Selection
        {
            Distinction^ get()
            {
                return m_selection;
            }
        }
    };


    /// Delegate
    public delegate void SelectEventHandler( System::Object^ sender, SelectEventArgs^ e );
}