namespace Terminal.Gui; /// Event arguments describing a change in selected object in a tree view public class SelectionChangedEventArgs : EventArgs where T : class { /// Creates a new instance of event args describing a change of selection in /// /// /// public SelectionChangedEventArgs (TreeView tree, T oldValue, T newValue) { Tree = tree; OldValue = oldValue; NewValue = newValue; } /// The newly selected value in the (can be null) public T NewValue { get; } /// The previously selected value (can be null) public T OldValue { get; } /// The view in which the change occurred public TreeView Tree { get; } }