104 references to DesignerActionListCollection
DesignSurface (1)
CustomControls\CustomButtonDesigner.cs (1)
14
_actionLists ??= new
DesignerActionListCollection
System.Windows.Forms.Design (17)
System\ComponentModel\Design\DesignerActionService.cs (1)
86
Add(comp, new
DesignerActionListCollection
([actionList]));
System\Windows\Forms\Design\Behavior\DesignerActionBehavior.cs (1)
61
DesignerActionListCollection lists =
new
();
System\Windows\Forms\Design\ComboBoxDesigner.cs (1)
130
_actionLists = new
DesignerActionListCollection
();
System\Windows\Forms\Design\DataGridViewDesigner.cs (1)
199
_actionLists = new
DesignerActionListCollection
();
System\Windows\Forms\Design\ImageListDesigner.cs (1)
137
_actionLists ??= new
DesignerActionListCollection
System\Windows\Forms\Design\ListBoxDesigner.cs (1)
197
_actionLists = new
DesignerActionListCollection
();
System\Windows\Forms\Design\ListViewDesigner.cs (1)
180
_actionLists = new
DesignerActionListCollection
();
System\Windows\Forms\Design\MaskedTextBoxDesigner.cs (1)
32
_actions = new
DesignerActionListCollection
();
System\Windows\Forms\Design\NotifyIconDesigner.cs (1)
24
_actionLists ??= new
DesignerActionListCollection
System\Windows\Forms\Design\PictureBoxDesigner.cs (1)
111
_actionLists = new
DesignerActionListCollection
();
System\Windows\Forms\Design\RichTextBoxDesigner.cs (1)
44
_actionLists = new
DesignerActionListCollection
();
System\Windows\Forms\Design\SplitContainerDesigner.cs (1)
43
DesignerActionListCollection designerActionListCollection =
new
();
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
374
_actionLists = new
DesignerActionListCollection
();
System\Windows\Forms\Design\TextBoxDesigner.cs (1)
25
_actionLists = new
DesignerActionListCollection
();
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
68
DesignerActionListCollection actionLists =
new
();
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
54
DesignerActionListCollection actionLists =
new
();
System\Windows\Forms\Design\TreeViewDesigner.cs (1)
72
public override DesignerActionListCollection ActionLists => _actionLists ??= new
DesignerActionListCollection
System.Windows.Forms.Design.Tests (86)
System\ComponentModel\Design\DesignerActionListCollectionTests.cs (12)
11
DesignerActionListCollection collection =
new
();
38
DesignerActionListCollection collection =
new
();
63
DesignerActionListCollection collection =
new
();
76
DesignerActionListCollection collection =
new
();
88
DesignerActionListCollection collection =
new
();
96
DesignerActionListCollection collection =
new
();
120
DesignerActionListCollection collection =
new
();
140
DesignerActionListCollection collection =
new
();
166
DesignerActionListCollection collection =
new
();
178
DesignerActionListCollection collection =
new
();
189
DesignerActionListCollection collection =
new
();
200
DesignerActionListCollection collection =
new
();
System\ComponentModel\Design\DesignerActionListsChangedEventArgsTests.cs (1)
11
yield return new object[] { new(), DesignerActionListsChangedType.ActionListsAdded, new
DesignerActionListCollection
() };
System\ComponentModel\Design\DesignerActionServiceTests.cs (73)
45
yield return new object[] { null, new
DesignerActionListCollection
() };
46
yield return new object[] { new DesignerActionList(null), new
DesignerActionListCollection
() };
47
yield return new object[] { new NullCustomDesignerActionList(null), new
DesignerActionListCollection
() };
48
yield return new object[] { actionList, new
DesignerActionListCollection
{ actionList } };
64
DesignerActionListCollection actionListBuffer1 =
new
();
68
DesignerActionListCollection actionListBuffer2 =
new
();
85
Assert.Equal(new
DesignerActionListCollection
{ actionList1, actionList2 }, service.GetComponentActions(component));
86
Assert.Equal(new
DesignerActionListCollection
{ actionList1, actionList2 }, service.GetComponentActions(component, ComponentActionsType.All));
87
Assert.Equal(new
DesignerActionListCollection
{ actionList1, actionList2 }, service.GetComponentActions(component, ComponentActionsType.Service));
90
DesignerActionListCollection actionListBuffer1 =
new
();
94
DesignerActionListCollection actionListBuffer2 =
new
();
96
Assert.Equal(new
DesignerActionListCollection
{ actionList1, actionList2 }, actionListBuffer2);
113
service.Add(component, new
DesignerActionListCollection
{ actionList });
120
DesignerActionListCollection actionListBuffer1 =
new
();
124
DesignerActionListCollection actionListBuffer2 =
new
();
136
service.Add(component, new
DesignerActionListCollection
{ actionList1 });
137
service.Add(component, new
DesignerActionListCollection
{ actionList2 });
138
service.Add(component, new
DesignerActionListCollection
{ null });
141
Assert.Equal(new
DesignerActionListCollection
{ actionList1, actionList2 }, service.GetComponentActions(component));
142
Assert.Equal(new
DesignerActionListCollection
{ actionList1, actionList2 }, service.GetComponentActions(component, ComponentActionsType.All));
143
Assert.Equal(new
DesignerActionListCollection
{ actionList1, actionList2 }, service.GetComponentActions(component, ComponentActionsType.Service));
146
DesignerActionListCollection actionListBuffer1 =
new
();
150
DesignerActionListCollection actionListBuffer2 =
new
();
152
Assert.Equal(new
DesignerActionListCollection
{ actionList1, actionList2 }, actionListBuffer2);
199
service.Add(component2, new
DesignerActionListCollection
());
222
service.Add(component2, new
DesignerActionListCollection
());
238
service.Add(new Component(), new
DesignerActionListCollection
());
392
yield return new object[] { null, new
DesignerActionListCollection
() };
395
yield return new object[] { mockSite.Object, new
DesignerActionListCollection
() };
402
yield return new object[] { nullMockSite.Object, new
DesignerActionListCollection
() };
409
yield return new object[] { invalidMockSite.Object, new
DesignerActionListCollection
() };
423
yield return new object[] { nullCommandSetMockSite.Object, new
DesignerActionListCollection
() };
428
.Returns(new
DesignerActionListCollection
());
437
yield return new object[] { emptyCommandSetMockSite.Object, new
DesignerActionListCollection
() };
442
DesignerActionListCollection actionLists =
new
() { null, new DesignerActionList(null), new NullCustomDesignerActionList(null), actionList };
456
yield return new object[] { actionListsCommandSetMockSite.Object, new
DesignerActionListCollection
{ actionList } };
469
DesignerActionListCollection actionListBuffer =
new
();
482
.Returns(new
DesignerActionListCollection
());
497
DesignerActionListCollection actionListBuffer =
new
();
526
.Returns(new
DesignerActionListCollection
());
541
DesignerActionListCollection actionListBuffer =
new
();
582
.Returns(new
DesignerActionListCollection
());
597
DesignerActionListCollection actionListBuffer =
new
();
629
DesignerActionListCollection actionListBuffer =
new
();
638
DesignerActionListCollection actionListBuffer =
new
();
684
service.Add(component2, new
DesignerActionListCollection
());
717
service.Add(new Component(), new
DesignerActionListCollection
());
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));
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));
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));
785
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component2));
791
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component3));
794
Assert.Equal(new
DesignerActionListCollection
{ actionList4, actionList4 }, service.GetComponentActions(component4));
815
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component2));
821
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component3));
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));
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));
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));
950
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component3));
951
Assert.Equal(new
DesignerActionListCollection
{ actionList4, actionList4 }, service.GetComponentActions(component4));
961
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component3));