RunStateEventArgs.cs 552 B

123456789101112131415161718192021222324
  1. using System;
  2. using static Terminal.Gui.Application;
  3. namespace Terminal.Gui {
  4. /// <summary>
  5. /// Event arguments for events about <see cref="RunState"/>
  6. /// </summary>
  7. public class RunStateEventArgs : EventArgs {
  8. /// <summary>
  9. /// Creates a new instance of the <see cref="RunStateEventArgs"/> class
  10. /// </summary>
  11. /// <param name="state"></param>
  12. public RunStateEventArgs (RunState state)
  13. {
  14. State = state;
  15. }
  16. /// <summary>
  17. /// The state being reported on by the event
  18. /// </summary>
  19. public RunState State { get; }
  20. }
  21. }