12345678910111213141516171819202122232425262728293031323334 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- 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; }
- }
- }
|