69 references to GetComponentActions
System.Windows.Forms.Design (8)
System\ComponentModel\Design\DesignerActionPanel.cs (1)
613
relatedLists = actionService.
GetComponentActions
(relatedComponent);
System\ComponentModel\Design\DesignerActionService.cs (4)
78
OnDesignerActionListsChanged(new DesignerActionListsChangedEventArgs(comp, DesignerActionListsChangedType.ActionListsAdded,
GetComponentActions
(comp)));
108
OnDesignerActionListsChanged(new(comp, DesignerActionListsChangedType.ActionListsRemoved,
GetComponentActions
(comp)));
312
OnDesignerActionListsChanged(new DesignerActionListsChangedEventArgs(comp, DesignerActionListsChangedType.ActionListsRemoved,
GetComponentActions
(comp)));
366
OnDesignerActionListsChanged(new DesignerActionListsChangedEventArgs(comp, DesignerActionListsChangedType.ActionListsRemoved,
GetComponentActions
(comp)));
System\ComponentModel\Design\DesignerActionUI.cs (1)
179
dalColl ??= _designerActionService.
GetComponentActions
(comp);
System\ComponentModel\Design\DesignerActionUIService.cs (1)
87
DesignerActionListCollection coll = _designerActionService.
GetComponentActions
(component);
System\ComponentModel\Design\MenuCommandService.cs (1)
223
DesignerActionListCollection actionLists = daSvc.
GetComponentActions
(selectedComponent);
System.Windows.Forms.Design.Tests (61)
System\ComponentModel\Design\DesignerActionServiceTests.cs (61)
59
Assert.Equal(expected, service.
GetComponentActions
(component));
85
Assert.Equal(new DesignerActionListCollection { actionList1, actionList2 }, service.
GetComponentActions
(component));
115
Assert.Equal(expected, service.
GetComponentActions
(component));
141
Assert.Equal(new DesignerActionListCollection { actionList1, actionList2 }, service.
GetComponentActions
(component));
168
Assert.NotEmpty(service.
GetComponentActions
(component));
172
Assert.Empty(service.
GetComponentActions
(component));
177
Assert.Empty(service.
GetComponentActions
(component));
386
Assert.Throws<ArgumentNullException>("component", () => service.
GetComponentActions
(null));
663
Assert.NotEmpty(service.
GetComponentActions
(component));
667
Assert.Empty(service.
GetComponentActions
(component));
672
Assert.Empty(service.
GetComponentActions
(component));
748
Assert.Empty(service.
GetComponentActions
(component1));
749
Assert.Equal(new DesignerActionListCollection { actionList2, actionList3 }, service.
GetComponentActions
(component2));
750
Assert.Equal(new DesignerActionListCollection { actionList3 }, service.
GetComponentActions
(component3));
751
Assert.Equal(new DesignerActionListCollection { actionList4, actionList4 }, service.
GetComponentActions
(component4));
759
Assert.Empty(service.
GetComponentActions
(component1));
760
Assert.Equal(new DesignerActionListCollection { actionList2, actionList3 }, service.
GetComponentActions
(component2));
761
Assert.Equal(new DesignerActionListCollection { actionList3 }, service.
GetComponentActions
(component3));
762
Assert.Equal(new DesignerActionListCollection { actionList4, actionList4 }, service.
GetComponentActions
(component4));
770
Assert.Empty(service.
GetComponentActions
(component1));
771
Assert.Equal(new DesignerActionListCollection { actionList3 }, service.
GetComponentActions
(component2));
772
Assert.Equal(new DesignerActionListCollection { actionList3 }, service.
GetComponentActions
(component3));
773
Assert.Equal(new DesignerActionListCollection { actionList4, actionList4 }, service.
GetComponentActions
(component4));
781
Assert.Empty(service.
GetComponentActions
(component1));
783
if (service.
GetComponentActions
(component2).Count == 1)
785
Assert.Equal(new DesignerActionListCollection { actionList3 }, service.
GetComponentActions
(component2));
786
Assert.Empty(service.
GetComponentActions
(component3));
790
Assert.Empty(service.
GetComponentActions
(component2));
791
Assert.Equal(new DesignerActionListCollection { actionList3 }, service.
GetComponentActions
(component3));
794
Assert.Equal(new DesignerActionListCollection { actionList4, actionList4 }, service.
GetComponentActions
(component4));
796
if (service.
GetComponentActions
(component2).Count == 1)
811
Assert.Empty(service.
GetComponentActions
(component1));
813
if (service.
GetComponentActions
(component2).Count == 1)
815
Assert.Equal(new DesignerActionListCollection { actionList3 }, service.
GetComponentActions
(component2));
816
Assert.Empty(service.
GetComponentActions
(component3));
820
Assert.Empty(service.
GetComponentActions
(component2));
821
Assert.Equal(new DesignerActionListCollection { actionList3 }, service.
GetComponentActions
(component3));
824
Assert.Empty(service.
GetComponentActions
(component4));
826
if (service.
GetComponentActions
(component2).Count == 1)
847
Assert.Single(service.
GetComponentActions
(component));
915
Assert.Empty(service.
GetComponentActions
(component1));
916
Assert.Equal(new DesignerActionListCollection { actionList2, actionList3 }, service.
GetComponentActions
(component2));
917
Assert.Equal(new DesignerActionListCollection { actionList3 }, service.
GetComponentActions
(component3));
918
Assert.Equal(new DesignerActionListCollection { actionList4, actionList4 }, service.
GetComponentActions
(component4));
926
Assert.Empty(service.
GetComponentActions
(component1));
927
Assert.Equal(new DesignerActionListCollection { actionList2, actionList3 }, service.
GetComponentActions
(component2));
928
Assert.Equal(new DesignerActionListCollection { actionList3 }, service.
GetComponentActions
(component3));
929
Assert.Equal(new DesignerActionListCollection { actionList4, actionList4 }, service.
GetComponentActions
(component4));
937
Assert.Empty(service.
GetComponentActions
(component1));
938
Assert.Equal(new DesignerActionListCollection { actionList3 }, service.
GetComponentActions
(component2));
939
Assert.Equal(new DesignerActionListCollection { actionList3 }, service.
GetComponentActions
(component3));
940
Assert.Equal(new DesignerActionListCollection { actionList4, actionList4 }, service.
GetComponentActions
(component4));
948
Assert.Empty(service.
GetComponentActions
(component1));
949
Assert.Empty(service.
GetComponentActions
(component2));
950
Assert.Equal(new DesignerActionListCollection { actionList3 }, service.
GetComponentActions
(component3));
951
Assert.Equal(new DesignerActionListCollection { actionList4, actionList4 }, service.
GetComponentActions
(component4));
959
Assert.Empty(service.
GetComponentActions
(component1));
960
Assert.Empty(service.
GetComponentActions
(component2));
961
Assert.Equal(new DesignerActionListCollection { actionList3 }, service.
GetComponentActions
(component3));
962
Assert.Empty(service.
GetComponentActions
(component4));
977
Assert.Single(service.
GetComponentActions
(component));