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)
2181Assert.Same(designer.ActionLists, set.GetCommands("ActionLists")); 2182Assert.Same(designer.Verbs, set.GetCommands("Verbs")); 2183Assert.Null(set.GetCommands("Other")); 2184Assert.Null(set.GetCommands(string.Empty)); 2185Assert.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)
23Assert.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"))