예제 #1
0
 public static ToolStripItem ToMenuItem(this IUiAction action)
 {
     return
         (new ToolStripMenuItem(action.Name, null, (sender, args) => action.Perform())
     {
         Tag = action
     });
 }
예제 #2
0
 private static ToolStripItem ToMenuItem(this IUiAction action)
 {
     return
         (new ToolStripMenuItem(action.Name, null, (sender, args) => action.Perform())
     {
         ToolTipText = action.Description,
         Tag = action
     });
 }
예제 #3
0
 public static ToolStripItem ToMenuItem(this IUiAction action)
 {
     return
         (new ToolStripMenuItem(action.Name, null, (sender, args) => action.Perform())
     {
         Tag = action,
         BackColor = Color.MediumPurple
     });
 }
예제 #4
0
 public static ToolStripItem ToMenuItem(this IUiAction action) =>
 new ToolStripMenuItem(action.Name, null, (sender, args) => action.Perform())
 {
     ToolTipText = action.Description,
     Tag         = action
 };