CommandEventArgs.cs 476 B

123456789101112131415161718
  1. #nullable enable
  2. using System.ComponentModel;
  3. namespace Terminal.Gui;
  4. /// <summary>
  5. /// Event arguments for <see cref="Command"/> events.
  6. /// </summary>
  7. public class CommandEventArgs : CancelEventArgs
  8. {
  9. /// <summary>
  10. /// The context for the command, if any.
  11. /// </summary>
  12. /// <remarks>
  13. /// If <see langword="null"/> the command was invoked without context.
  14. /// </remarks>
  15. public required ICommandContext? Context { get; init; }
  16. }