using System;
namespace Terminal.Gui {
///
/// Event arguments for the SelectedItemChagned event.
///
public class SelectedItemChangedArgs : EventArgs {
///
/// Gets the index of the item that was previously selected. -1 if there was no previous selection.
///
public int PreviousSelectedItem { get; }
///
/// Gets the index of the item that is now selected. -1 if there is no selection.
///
public int SelectedItem { get; }
///
/// Initializes a new class.
///
///
///
public SelectedItemChangedArgs (int selectedItem, int previousSelectedItem)
{
PreviousSelectedItem = previousSelectedItem;
SelectedItem = selectedItem;
}
}
}