Files
Terminal.Gui/Terminal.Gui/View/ToggleEventArgs.cs
Tig 574ed8fec7 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
2023-04-06 10:09:21 -06:00

31 lines
689 B
C#

using System;
namespace Terminal.Gui {
/// <summary>
/// <see cref="EventArgs"/> for the <see cref="CheckBox.Toggled"/> event
/// </summary>
public class ToggleEventArgs : EventArgs {
/// <summary>
/// Creates a new instance of the <see cref="ToggleEventArgs"/> class.
/// </summary>
/// <param name="oldValue"></param>
/// <param name="newValue"></param>
public ToggleEventArgs (bool? oldValue, bool? newValue)
{
OldValue = oldValue;
NewValue = newValue;
}
/// <summary>
/// The previous checked state
/// </summary>
public bool? OldValue { get; }
/// <summary>
/// The new checked state
/// </summary>
public bool? NewValue { get; }
}
}