public static ToolStripItem ToMenuItem(this IGuiAction action) => new ToolStripMenuItem(action.Name, null, (sender, args) => action.Perform()) { ToolTipText = action.Description };
public static ToolStripItem ToMenuItem(this IGuiAction action) { return (new ToolStripMenuItem(action.GetActionName(), null, (sender, args) => action.Perform()) { ToolTipText = action.GetActionDescription(), Tag = action }); }