7 references to new
System.Windows.Forms (5)
System\Windows\Forms\Controls\Unsupported\ContextMenu\MenuItem.cs (5)
26
public MenuItem() :
this
(
36
public MenuItem(string text) :
this
(
46
public MenuItem(string text, EventHandler onClick) :
this
(
56
public MenuItem(string text, EventHandler onClick, Shortcut shortcut) :
this
(
66
public MenuItem(string text, MenuItem[] items) :
this
(
System.Windows.Forms.Tests (1)
System\Windows\Forms\UnsupportedTypesTests.cs (1)
49
() => new
MenuItem
(MenuMerge.Add, mergeOrder: 1, Shortcut.Alt0, text: "text", onClick: null!, onPopup: null!, onSelect: null, items: null!),
UnsupportedTypes (1)
CreateFrameworkTypes.cs (1)
38
_menuItem2 =
new
(MenuMerge.Add, mergeOrder: 0, Shortcut.Alt0, "Item2", onClick: null, OnPopup, OnSelect, [new("Item2-1"), new("Item2-2")]);