Fixes #2469 - Revamp file structure and namespace (#2471)

* initial commit

* All tests pass

* Updated readme

* Revert "All tests pass"

This reverts commit 94ac462350.

* Revert "initial commit"

This reverts commit 36d92cc4e5.

* Moved Terminal.Gui files around

* Nuked .Graphs namespace

* Nuked .Graphs namespace

* Nuked .Trees namespace

* Nuked .Configuration namespace

* Nuked .Configuration namespace

* All tests pass

* tweaked tests

* removed unneeded usings

* re-enabled scrollview tests

* move scrollview test to ScrollViewTests

* Moved view navigation related tests to separate cs file

* Moved view scrollbarview related tests ScrollBarTestse

* Refactored View tests into smaller files

* Refactored driver tests

* Fixed a ton of BUGBUGs
This commit is contained in:
Tig
2023-04-06 10:09:21 -06:00
committed by GitHub
parent ec08c12162
commit 574ed8fec7
187 changed files with 6591 additions and 6541 deletions

View File

@@ -0,0 +1,32 @@
namespace Terminal.Gui {
/// <summary>
/// Event args for the <see cref="TreeView{T}.ObjectActivated"/> event
/// </summary>
/// <typeparam name="T"></typeparam>
public class ObjectActivatedEventArgs<T> where T : class {
/// <summary>
/// The tree in which the activation occurred
/// </summary>
/// <value></value>
public TreeView<T> Tree { get; }
/// <summary>
/// The object that was selected at the time of activation
/// </summary>
/// <value></value>
public T ActivatedObject { get; }
/// <summary>
/// Creates a new instance documenting activation of the <paramref name="activated"/> object
/// </summary>
/// <param name="tree">Tree in which the activation is happening</param>
/// <param name="activated">What object is being activated</param>
public ObjectActivatedEventArgs (TreeView<T> tree, T activated)
{
Tree = tree;
ActivatedObject = activated;
}
}
}