1 override of GetCommands
System.Windows.Forms.Design (1)
System\ComponentModel\Design\ComponentDesigner.CDDesignerCommandSet.cs (1)
19public 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)
15public DesignerVerbCollection? Verbs => (DesignerVerbCollection?)GetCommands(VerbsCommand); 17public DesignerActionListCollection? ActionLists => (DesignerActionListCollection?)GetCommands(ActionListsCommand);
System.Windows.Forms.Design.Tests (22)
System\ComponentModel\Design\ComponentDesignerTests.cs (5)
2183Assert.Same(designer.ActionLists, set.GetCommands("ActionLists")); 2184Assert.Same(designer.Verbs, set.GetCommands("Verbs")); 2185Assert.Null(set.GetCommands("Other")); 2186Assert.Null(set.GetCommands(string.Empty)); 2187Assert.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)
25Assert.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"))