namespace Terminal.Gui; /// /// An which allows passing a cancelable menu opening event or replacing with a new /// . /// public class MenuOpeningEventArgs : EventArgs { /// Initializes a new instance of . /// The current parent. public MenuOpeningEventArgs (MenuBarItem currentMenu) { CurrentMenu = currentMenu; } /// /// Flag that allows the cancellation of the event. If set to in the event handler, the /// event will be canceled. /// public bool Cancel { get; set; } /// The current parent. public MenuBarItem CurrentMenu { get; } /// The new to be replaced. public MenuBarItem NewMenuBarItem { get; set; } }