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