■ 이벤트 정의하기

----------------------------------------------------------------------------------------------------

/// <summary>

/// 값 변경시

/// </summary>

private EventHandler<EventArgs> valueChanged;

 

#region 값 변경시 - ValueChanged

 

/// <summary>

/// 값 변경시

/// </summary>

public event EventHandler<EventArgs> ValueChanged

{

    add

    {

        this.valueChanged += value;

    }

    remove

    {

        this.valueChanged -= value;

    }

}

 

#endregion

----------------------------------------------------------------------------------------------------

Posted by 사용자 icodebroker
TAG

댓글을 달아 주세요