#nullable enable 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. null if there was no previous selection. public int? PreviousSelectedItem { get; } /// Gets the index of the item that is now selected. null if there is no selection. public int? SelectedItem { get; } }