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)
236
DesignerVerb 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)
51
items.Add(new DesignerActionVerbItem(new
DesignerVerb
(actionName, OnDockActionClick)));
System\Windows\Forms\Design\DataGridViewDesigner.cs (2)
175
designerVerbs.Add(new
DesignerVerb
(SR.DataGridViewEditColumnsVerb, OnEditColumns));
176
designerVerbs.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)
62
new 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)
439
DesignerVerb verb =
new
(null, null);
477
DesignerVerb verb =
new
(null, null);
478
DesignerVerbCollection verbs = new() { null, new
DesignerVerb
(null, null) { Enabled = false }, new
DesignerVerb
(null, null) { Visible = false }, verb };
521
DesignerVerb verb =
new
(null, null);
522
DesignerVerbCollection verbs = new() { null, new
DesignerVerb
(null, null) { Enabled = false }, new
DesignerVerb
(null, null) { Visible = false }, verb };
576
verb = new
DesignerVerb
("text", handler);
578
DesignerVerbCollection verbs = new() { null, new
DesignerVerb
(null, null) { Enabled = false }, new
DesignerVerb
(null, null) { Visible = false }, verb };
System\ComponentModel\Design\DesignerVerbCollectionTests.cs (14)
18
yield return new object[] { new DesignerVerb[] {
new
(null, null), null } };
40
DesignerVerb value1 =
new
(null, null);
47
DesignerVerb value2 =
new
(null, null);
98
DesignerVerb value1 =
new
(null, null);
105
DesignerVerb value2 =
new
(null, null);
121
DesignerVerb value =
new
(null, null);
141
DesignerVerb value1 =
new
(null, null);
142
DesignerVerb value2 =
new
(null, null);
167
DesignerVerb value =
new
(null, null);
179
DesignerVerb value =
new
(null, null);
182
Assert.False(collection.Contains(new
DesignerVerb
(null, null)));
190
DesignerVerb value =
new
(null, null);
193
Assert.Equal(-1, collection.IndexOf(new
DesignerVerb
(null, null)));
201
DesignerVerb value =
new
(null, null);
System\Windows\Forms\Design\DesignerVerbToolStripMenuItemTests.cs (3)
15
DesignerVerb verb =
new
("TestVerb", (sender, e) => { });
26
DesignerVerb verb =
new
("TestVerb", (sender, e) => { })
43
DesignerVerb verb =
new
("TestVerb", (sender, e) => invoked = true);
System.Windows.Forms.Tests (1)
System\Windows\Forms\AccessibleObjects\PropertyGrid.PropertyGridAccessibleObjectTests.cs (1)
193
public DesignerVerbCollection Verbs { get; } = new([new
DesignerVerb
("", null)]);