-
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.
This reverts commit 77ae7ae.
- Loading branch information
Showing
7 changed files
with
1,065 additions
and
446 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.SelectedTabIndex"/></summary> | ||
/// <summary>Describes a change in <see cref="TabView.SelectedTab"/></summary> | ||
public class TabChangedEventArgs : EventArgs | ||
{ | ||
/// <summary>Documents a tab change</summary> | ||
/// <param name="oldTabIndex"></param> | ||
/// <param name="newTabIndex"></param> | ||
public TabChangedEventArgs (int? oldTabIndex, int? newTabIndex) | ||
/// <param name="oldTab"></param> | ||
/// <param name="newTab"></param> | ||
public TabChangedEventArgs (Tab oldTab, Tab newTab) | ||
{ | ||
OldTabIndex = oldTabIndex; | ||
NewTabIndex = newTabIndex; | ||
OldTab = oldTab; | ||
NewTab = newTab; | ||
} | ||
|
||
/// <summary>The currently selected tab.</summary> | ||
public int? NewTabIndex { get; } | ||
/// <summary>The currently selected tab. May be null</summary> | ||
public Tab NewTab { get; } | ||
|
||
/// <summary>The previously selected tab.</summary> | ||
public int? OldTabIndex{ get; } | ||
/// <summary>The previously selected tab. May be null</summary> | ||
public Tab OldTab { get; } | ||
} |
Oops, something went wrong.