1 override of GetCommands
System.Windows.Forms.Design (1)
System\ComponentModel\Design\ComponentDesigner.CDDesignerCommandSet.cs (1)
19
public override ICollection?
GetCommands
(string name) => name switch
25 references to GetCommands
System.Windows.Forms.Design (3)
System\ComponentModel\Design\ComponentDesigner.CDDesignerCommandSet.cs (1)
23
_ => base.
GetCommands
(name)
System\ComponentModel\Design\DesignerCommandSet.cs (2)
15
public DesignerVerbCollection? Verbs => (DesignerVerbCollection?)
GetCommands
(VerbsCommand);
17
public DesignerActionListCollection? ActionLists => (DesignerActionListCollection?)
GetCommands
(ActionListsCommand);
System.Windows.Forms.Design.Tests (22)
System\ComponentModel\Design\ComponentDesignerTests.cs (5)
2183
Assert.Same(designer.ActionLists, set.
GetCommands
("ActionLists"));
2184
Assert.Same(designer.Verbs, set.
GetCommands
("Verbs"));
2185
Assert.Null(set.
GetCommands
("Other"));
2186
Assert.Null(set.
GetCommands
(string.Empty));
2187
Assert.Null(set.
GetCommands
(null));
System\ComponentModel\Design\DesignerActionServiceTests.cs (12)
415
.Setup(c => c.
GetCommands
("ActionLists"))
418
.Setup(c => c.
GetCommands
("Verbs"))
429
.Setup(c => c.
GetCommands
("ActionLists"))
432
.Setup(c => c.
GetCommands
("Verbs"))
448
.Setup(c => c.
GetCommands
("ActionLists"))
451
.Setup(c => c.
GetCommands
("Verbs"))
483
.Setup(c => c.
GetCommands
("ActionLists"))
486
.Setup(c => c.
GetCommands
("Verbs"))
527
.Setup(c => c.
GetCommands
("ActionLists"))
530
.Setup(c => c.
GetCommands
("Verbs"))
583
.Setup(c => c.
GetCommands
("ActionLists"))
586
.Setup(c => c.
GetCommands
("Verbs"))
System\ComponentModel\Design\DesignerCommandSetTests.cs (5)
25
Assert.Null(set.
GetCommands
(name));
34
.Setup(s => s.
GetCommands
("Verbs"))
44
.Setup(s => s.
GetCommands
("Verbs"))
55
.Setup(s => s.
GetCommands
("ActionLists"))
65
.Setup(s => s.
GetCommands
("ActionLists"))