namespace Terminal.Gui; /// Args for events that relate to a specific . public class ToplevelEventArgs : EventArgs { /// Creates a new instance of the class. /// public ToplevelEventArgs (Toplevel toplevel) { Toplevel = toplevel; } /// Gets the that the event is about. /// /// This is usually but may not always be the same as the sender in . For example if /// the reported event is about a different or the event is raised by a separate class. /// public Toplevel Toplevel { get; } } /// implementation for the event. public class ToplevelClosingEventArgs : EventArgs { /// Initializes the event arguments with the requesting Toplevel. /// The . public ToplevelClosingEventArgs (Toplevel requestingTop) { RequestingTop = requestingTop; } /// Provides an event cancellation option. public bool Cancel { get; set; } /// The Toplevel requesting stop. public View RequestingTop { get; } }