Skip to content

Instantly share code, notes, and snippets.

@0x414c49
Created January 14, 2020 09:05
Show Gist options
  • Save 0x414c49/3ed5fd13da4e12c7f6495817ce85d5e8 to your computer and use it in GitHub Desktop.
Save 0x414c49/3ed5fd13da4e12c7f6495817ce85d5e8 to your computer and use it in GitHub Desktop.
Menu
var menu = new MenuBar(new MenuBarItem[] {
new MenuBarItem("_File", new MenuItem[]{
new MenuItem("_Quit", "", () => Application.RequestStop())
}), // end of file menu
new MenuBarItem("_Help", new MenuItem[]{
new MenuItem("_About", "", ()
=> MessageBox.Query(10, 5, "About", "Written by Ali Bahraminezhad\nVersion: 0.0001", "Ok"))
}) // end of the help menu
});
top.Add(menu);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment