32 lines
1.1 KiB
C#
32 lines
1.1 KiB
C#
using DTS.Common.Enums;
|
|
|
|
namespace DTS.Common.Events
|
|
{
|
|
/// <summary>
|
|
/// Event arguments for the <see cref="TabControlSelectionChanged">TabControlSelectionChanged</see> event.
|
|
/// </summary>
|
|
public class TabControlSelectionEventArgs
|
|
{
|
|
/// <summary>
|
|
/// Gets the tab control operation type such as AddedItem or RemovedItem.
|
|
/// </summary>
|
|
public TabControlOperation Operation { get; private set; }
|
|
|
|
/// <summary>
|
|
/// Gets the added or removed tab control's item.
|
|
/// </summary>
|
|
public object Item { get; private set; }
|
|
|
|
/// <summary>
|
|
/// Creates a new instance of the object.
|
|
/// </summary>
|
|
/// <param name="operation">The tab control operation type such as AddedItem or RemovedItem.</param>
|
|
/// <param name="item">The added or removed tab control's item.</param>
|
|
public TabControlSelectionEventArgs(TabControlOperation operation, object item)
|
|
{
|
|
Operation = operation;
|
|
Item = item;
|
|
}
|
|
}
|
|
}
|