namespace Terminal.Gui; /// Event arguments for the SelectedItemChanged event. public class SelectedItemChangedArgs : EventArgs { /// Initializes a new class. /// /// public SelectedItemChangedArgs (int selectedItem, int previousSelectedItem) { PreviousSelectedItem = previousSelectedItem; SelectedItem = selectedItem; } /// 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; } }