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)
2181
Assert.Same(designer.ActionLists, set.
GetCommands
("ActionLists"));
2182
Assert.Same(designer.Verbs, set.
GetCommands
("Verbs"));
2183
Assert.Null(set.
GetCommands
("Other"));
2184
Assert.Null(set.
GetCommands
(string.Empty));
2185
Assert.Null(set.
GetCommands
(null));
System\ComponentModel\Design\DesignerActionServiceTests.cs (12)
413
.Setup(c => c.
GetCommands
("ActionLists"))
416
.Setup(c => c.
GetCommands
("Verbs"))
427
.Setup(c => c.
GetCommands
("ActionLists"))
430
.Setup(c => c.
GetCommands
("Verbs"))
446
.Setup(c => c.
GetCommands
("ActionLists"))
449
.Setup(c => c.
GetCommands
("Verbs"))
481
.Setup(c => c.
GetCommands
("ActionLists"))
484
.Setup(c => c.
GetCommands
("Verbs"))
525
.Setup(c => c.
GetCommands
("ActionLists"))
528
.Setup(c => c.
GetCommands
("Verbs"))
581
.Setup(c => c.
GetCommands
("ActionLists"))
584
.Setup(c => c.
GetCommands
("Verbs"))
System\ComponentModel\Design\DesignerCommandSetTests.cs (5)
23
Assert.Null(set.
GetCommands
(name));
32
.Setup(s => s.
GetCommands
("Verbs"))
42
.Setup(s => s.
GetCommands
("Verbs"))
53
.Setup(s => s.
GetCommands
("ActionLists"))
63
.Setup(s => s.
GetCommands
("ActionLists"))