using System;
namespace Terminal.Gui {
///
/// An which allows passing a cancelable menu opening event or replacing with a new .
///
public class MenuOpeningEventArgs : EventArgs {
///
/// The current parent.
///
public MenuBarItem CurrentMenu { get; }
///
/// The new to be replaced.
///
public MenuBarItem NewMenuBarItem { get; set; }
///
/// 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; }
///
/// Initializes a new instance of .
///
/// The current parent.
public MenuOpeningEventArgs (MenuBarItem currentMenu)
{
CurrentMenu = currentMenu;
}
}
}