This commit is contained in:
Frank Skare
2019-04-28 17:07:31 +02:00
parent 1bb05c4d99
commit aa8ae225c5
7 changed files with 70 additions and 48 deletions

View File

@@ -61,11 +61,6 @@ public class MenuItem : ToolStripMenuItem
base.OnClick(e);
}
public static MenuItem Add<T>(ToolStripItemCollection items, string path, Action<T> action, T value)
{
return Add(items, path, () => action(value));
}
public static MenuItem Add(ToolStripItemCollection items, string path, Action action)
{
string[] a = path.Split(new[] { " > ", " | " }, StringSplitOptions.RemoveEmptyEntries);