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