44 references to new
DesignSurface (1)
CustomControls\CustomButtonDesignerActionList.cs (1)
27_actonListItems.Add(new DesignerActionVerbItem(new DesignerVerb(GetActionName(), OnColorActionClick)));
System.Windows.Forms.Design (15)
System\ComponentModel\Design\MenuCommandService.cs (1)
236DesignerVerb verb = new(dami.DisplayName!, handler);
System\Windows\Forms\Design\CollectionEditVerbManager.cs (1)
44_editItemsVerb = new DesignerVerb(text, new EventHandler(OnEditItems));
System\Windows\Forms\Design\ControlDesigner.DockingActionList.cs (1)
51items.Add(new DesignerActionVerbItem(new DesignerVerb(actionName, OnDockActionClick)));
System\Windows\Forms\Design\DataGridViewDesigner.cs (2)
175designerVerbs.Add(new DesignerVerb(SR.DataGridViewEditColumnsVerb, OnEditColumns)); 176designerVerbs.Add(new DesignerVerb(SR.DataGridViewAddColumnVerb, OnAddColumn));
System\Windows\Forms\Design\EditorServiceContext.cs (1)
40_designer.Verbs?.Add(new DesignerVerb(newVerbText, new EventHandler(OnEditItems)));
System\Windows\Forms\Design\MaskedTextBoxDesigner.cs (1)
296_verbs.Add(new DesignerVerb(SR.MaskedTextBoxDesignerVerbsSetMaskDesc, new EventHandler(OnVerbSetMask)));
System\Windows\Forms\Design\SplitContainerDesigner.OrientationActionList.cs (1)
62new DesignerActionVerbItem(new DesignerVerb(_actionName!, OnOrientationActionClick))
System\Windows\Forms\Design\TabControlDesigner.cs (2)
66_removeVerb = new DesignerVerb(SR.TabControlRemove, new EventHandler(OnRemove)); 69_verbs.Add(new DesignerVerb(SR.TabControlAdd, new EventHandler(OnAdd)));
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (5)
242_removeColVerb = new DesignerVerb(SR.TableLayoutPanelDesignerRemoveColumn, OnVerbRemove); 243_removeRowVerb = new DesignerVerb(SR.TableLayoutPanelDesignerRemoveRow, OnVerbRemove); 247_verbs.Add(new DesignerVerb(SR.TableLayoutPanelDesignerAddColumn, OnVerbAdd)); 248_verbs.Add(new DesignerVerb(SR.TableLayoutPanelDesignerAddRow, OnVerbAdd)); 251_verbs.Add(new DesignerVerb(SR.TableLayoutPanelDesignerEditRowAndCol, OnVerbEdit));
System.Windows.Forms.Design.Tests (27)
System\ComponentModel\Design\DesignerActionServiceTests.cs (10)
439DesignerVerb verb = new(null, null); 477DesignerVerb verb = new(null, null); 478DesignerVerbCollection verbs = new() { null, new DesignerVerb(null, null) { Enabled = false }, new DesignerVerb(null, null) { Visible = false }, verb }; 521DesignerVerb verb = new(null, null); 522DesignerVerbCollection verbs = new() { null, new DesignerVerb(null, null) { Enabled = false }, new DesignerVerb(null, null) { Visible = false }, verb }; 576verb = new DesignerVerb("text", handler); 578DesignerVerbCollection verbs = new() { null, new DesignerVerb(null, null) { Enabled = false }, new DesignerVerb(null, null) { Visible = false }, verb };
System\ComponentModel\Design\DesignerVerbCollectionTests.cs (14)
18yield return new object[] { new DesignerVerb[] { new(null, null), null } }; 40DesignerVerb value1 = new(null, null); 47DesignerVerb value2 = new(null, null); 98DesignerVerb value1 = new(null, null); 105DesignerVerb value2 = new(null, null); 121DesignerVerb value = new(null, null); 141DesignerVerb value1 = new(null, null); 142DesignerVerb value2 = new(null, null); 167DesignerVerb value = new(null, null); 179DesignerVerb value = new(null, null); 182Assert.False(collection.Contains(new DesignerVerb(null, null))); 190DesignerVerb value = new(null, null); 193Assert.Equal(-1, collection.IndexOf(new DesignerVerb(null, null))); 201DesignerVerb value = new(null, null);
System\Windows\Forms\Design\DesignerVerbToolStripMenuItemTests.cs (3)
15DesignerVerb verb = new("TestVerb", (sender, e) => { }); 26DesignerVerb verb = new("TestVerb", (sender, e) => { }) 43DesignerVerb verb = new("TestVerb", (sender, e) => invoked = true);
System.Windows.Forms.Tests (1)
System\Windows\Forms\AccessibleObjects\PropertyGrid.PropertyGridAccessibleObjectTests.cs (1)
193public DesignerVerbCollection Verbs { get; } = new([new DesignerVerb("", null)]);