-
Notifications
You must be signed in to change notification settings - Fork 689
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
446 additions
and
1,065 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
namespace Terminal.Gui; | ||
|
||
/// <summary>Describes a change in <see cref="TabView.SelectedTab"/></summary> | ||
/// <summary>Describes a change in <see cref="TabView.SelectedTabIndex"/></summary> | ||
public class TabChangedEventArgs : EventArgs | ||
{ | ||
/// <summary>Documents a tab change</summary> | ||
/// <param name="oldTab"></param> | ||
/// <param name="newTab"></param> | ||
public TabChangedEventArgs (Tab oldTab, Tab newTab) | ||
/// <param name="oldTabIndex"></param> | ||
/// <param name="newTabIndex"></param> | ||
public TabChangedEventArgs (int? oldTabIndex, int? newTabIndex) | ||
{ | ||
OldTab = oldTab; | ||
NewTab = newTab; | ||
OldTabIndex = oldTabIndex; | ||
NewTabIndex = newTabIndex; | ||
} | ||
|
||
/// <summary>The currently selected tab. May be null</summary> | ||
public Tab NewTab { get; } | ||
/// <summary>The currently selected tab.</summary> | ||
public int? NewTabIndex { get; } | ||
|
||
/// <summary>The previously selected tab. May be null</summary> | ||
public Tab OldTab { get; } | ||
/// <summary>The previously selected tab.</summary> | ||
public int? OldTabIndex{ get; } | ||
} |
Oops, something went wrong.