23 references to new
DesignSurface (4)
MainForm.cs (4)
302ToolStripMenuItem toolStripMenuItem1 = new("TopMenuItem1"); 303ToolStripMenuItem toolStripMenuItem2 = new("TopMenuItem2"); 304ToolStripMenuItem menu1 = new("BottomMenuItem1"); 305ToolStripMenuItem menuNew1 = new("BottomMenuItem2");
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (3)
68ToolStripMenuItem item = new(text); 94ToolStripMenuItem item = new(name) 105ToolStripMenuItem item = new(text);
System.Windows.Forms.Design.Tests (5)
System\Windows\Forms\Design\ContextMenuStripGroupTests.cs (4)
38ToolStripMenuItem newItem = new("Test Item"); 50ToolStripMenuItem newItem1 = new("Test Item1"); 51ToolStripMenuItem newItem2 = new("Test Item2"); 65ToolStripMenuItem newItem = new("Test Item");
System\Windows\Forms\Design\CustomMenuItemCollectionTests.cs (1)
19ToolStripMenuItem item = new("TestItem");
System.Windows.Forms.Tests (7)
System\Windows\Forms\AccessibleObjects\ToolStripDropDownButton.ToolStripDropDownButtonAccessibleObjectTests.cs (1)
105ToolStripItem[] dropDownItems = [new ToolStripMenuItem("Test item")];
System\Windows\Forms\ToolStripMenuItemTests.cs (2)
244ToolStripItem[] dropDownItems = [new ToolStripMenuItem("SubItem1"), new ToolStripMenuItem("SubItem2")];
System\Windows\Forms\ToolStripSplitButtonTests.cs (2)
157using ToolStripMenuItem item1 = new("Item1"); 158using ToolStripMenuItem item2 = new("Item2");
System\Windows\Forms\ToolStripTests.cs (2)
7343using ToolStripMenuItem toolStripMenuItem = new(nameof(toolStripMenuItem)); 7344using ToolStripMenuItem listToolStripMenuItem = new(nameof(listToolStripMenuItem));
System.Windows.Forms.UI.IntegrationTests (4)
ToolStripTests.cs (4)
69using ToolStripMenuItem menu1 = new("Menu1"); 70using ToolStripMenuItem menu1Item1 = new("Item1"); 73using ToolStripMenuItem hiddenMenu = new("hiddenMenu"); 74using ToolStripMenuItem hiddenMenuItem1 = new("hiddenMenuItem1");