ToplevelEventArgs.cs 573 B

123456789101112131415161718192021
  1. using System;
  2. namespace Terminal.Gui {
  3. public class ToplevelEventArgs : EventArgs{
  4. public ToplevelEventArgs (Toplevel toplevel)
  5. {
  6. Toplevel = toplevel;
  7. }
  8. /// <summary>
  9. /// Gets the <see cref="Toplevel"/> that the event is about.
  10. /// </summary>
  11. /// <remarks>This is usually but may not always be the same as the sender
  12. /// in <see cref="EventHandler"/>. For example if the reported event
  13. /// is about a different <see cref="Toplevel"/> or the event is
  14. /// raised by a separate class.
  15. /// </remarks>
  16. public Toplevel Toplevel { get; }
  17. }
  18. }