104 references to DesignerActionListCollection
DesignSurface (1)
CustomControls\CustomButtonDesigner.cs (1)
11
_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)
128
_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)
178
_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)
69
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)
13
DesignerActionListCollection collection =
new
();
40
DesignerActionListCollection collection =
new
();
65
DesignerActionListCollection collection =
new
();
78
DesignerActionListCollection collection =
new
();
90
DesignerActionListCollection collection =
new
();
98
DesignerActionListCollection collection =
new
();
122
DesignerActionListCollection collection =
new
();
142
DesignerActionListCollection collection =
new
();
168
DesignerActionListCollection collection =
new
();
180
DesignerActionListCollection collection =
new
();
191
DesignerActionListCollection collection =
new
();
202
DesignerActionListCollection collection =
new
();
System\ComponentModel\Design\DesignerActionListsChangedEventArgsTests.cs (1)
13
yield return new object[] { new(), DesignerActionListsChangedType.ActionListsAdded, new
DesignerActionListCollection
() };
System\ComponentModel\Design\DesignerActionServiceTests.cs (73)
47
yield return new object[] { null, new
DesignerActionListCollection
() };
48
yield return new object[] { new DesignerActionList(null), new
DesignerActionListCollection
() };
49
yield return new object[] { new NullCustomDesignerActionList(null), new
DesignerActionListCollection
() };
50
yield return new object[] { actionList, new
DesignerActionListCollection
{ actionList } };
66
DesignerActionListCollection actionListBuffer1 =
new
();
70
DesignerActionListCollection actionListBuffer2 =
new
();
87
Assert.Equal(new
DesignerActionListCollection
{ actionList1, actionList2 }, service.GetComponentActions(component));
88
Assert.Equal(new
DesignerActionListCollection
{ actionList1, actionList2 }, service.GetComponentActions(component, ComponentActionsType.All));
89
Assert.Equal(new
DesignerActionListCollection
{ actionList1, actionList2 }, service.GetComponentActions(component, ComponentActionsType.Service));
92
DesignerActionListCollection actionListBuffer1 =
new
();
96
DesignerActionListCollection actionListBuffer2 =
new
();
98
Assert.Equal(new
DesignerActionListCollection
{ actionList1, actionList2 }, actionListBuffer2);
115
service.Add(component, new
DesignerActionListCollection
{ actionList });
122
DesignerActionListCollection actionListBuffer1 =
new
();
126
DesignerActionListCollection actionListBuffer2 =
new
();
138
service.Add(component, new
DesignerActionListCollection
{ actionList1 });
139
service.Add(component, new
DesignerActionListCollection
{ actionList2 });
140
service.Add(component, new
DesignerActionListCollection
{ null });
143
Assert.Equal(new
DesignerActionListCollection
{ actionList1, actionList2 }, service.GetComponentActions(component));
144
Assert.Equal(new
DesignerActionListCollection
{ actionList1, actionList2 }, service.GetComponentActions(component, ComponentActionsType.All));
145
Assert.Equal(new
DesignerActionListCollection
{ actionList1, actionList2 }, service.GetComponentActions(component, ComponentActionsType.Service));
148
DesignerActionListCollection actionListBuffer1 =
new
();
152
DesignerActionListCollection actionListBuffer2 =
new
();
154
Assert.Equal(new
DesignerActionListCollection
{ actionList1, actionList2 }, actionListBuffer2);
201
service.Add(component2, new
DesignerActionListCollection
());
224
service.Add(component2, new
DesignerActionListCollection
());
240
service.Add(new Component(), new
DesignerActionListCollection
());
394
yield return new object[] { null, new
DesignerActionListCollection
() };
397
yield return new object[] { mockSite.Object, new
DesignerActionListCollection
() };
404
yield return new object[] { nullMockSite.Object, new
DesignerActionListCollection
() };
411
yield return new object[] { invalidMockSite.Object, new
DesignerActionListCollection
() };
425
yield return new object[] { nullCommandSetMockSite.Object, new
DesignerActionListCollection
() };
430
.Returns(new
DesignerActionListCollection
());
439
yield return new object[] { emptyCommandSetMockSite.Object, new
DesignerActionListCollection
() };
444
DesignerActionListCollection actionLists =
new
() { null, new DesignerActionList(null), new NullCustomDesignerActionList(null), actionList };
458
yield return new object[] { actionListsCommandSetMockSite.Object, new
DesignerActionListCollection
{ actionList } };
471
DesignerActionListCollection actionListBuffer =
new
();
484
.Returns(new
DesignerActionListCollection
());
499
DesignerActionListCollection actionListBuffer =
new
();
528
.Returns(new
DesignerActionListCollection
());
543
DesignerActionListCollection actionListBuffer =
new
();
584
.Returns(new
DesignerActionListCollection
());
599
DesignerActionListCollection actionListBuffer =
new
();
631
DesignerActionListCollection actionListBuffer =
new
();
640
DesignerActionListCollection actionListBuffer =
new
();
686
service.Add(component2, new
DesignerActionListCollection
());
719
service.Add(new Component(), new
DesignerActionListCollection
());
751
Assert.Equal(new
DesignerActionListCollection
{ actionList2, actionList3 }, service.GetComponentActions(component2));
752
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component3));
753
Assert.Equal(new
DesignerActionListCollection
{ actionList4, actionList4 }, service.GetComponentActions(component4));
762
Assert.Equal(new
DesignerActionListCollection
{ actionList2, actionList3 }, service.GetComponentActions(component2));
763
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component3));
764
Assert.Equal(new
DesignerActionListCollection
{ actionList4, actionList4 }, service.GetComponentActions(component4));
773
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component2));
774
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component3));
775
Assert.Equal(new
DesignerActionListCollection
{ actionList4, actionList4 }, service.GetComponentActions(component4));
787
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component2));
793
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component3));
796
Assert.Equal(new
DesignerActionListCollection
{ actionList4, actionList4 }, service.GetComponentActions(component4));
817
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component2));
823
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component3));
918
Assert.Equal(new
DesignerActionListCollection
{ actionList2, actionList3 }, service.GetComponentActions(component2));
919
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component3));
920
Assert.Equal(new
DesignerActionListCollection
{ actionList4, actionList4 }, service.GetComponentActions(component4));
929
Assert.Equal(new
DesignerActionListCollection
{ actionList2, actionList3 }, service.GetComponentActions(component2));
930
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component3));
931
Assert.Equal(new
DesignerActionListCollection
{ actionList4, actionList4 }, service.GetComponentActions(component4));
940
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component2));
941
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component3));
942
Assert.Equal(new
DesignerActionListCollection
{ actionList4, actionList4 }, service.GetComponentActions(component4));
952
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component3));
953
Assert.Equal(new
DesignerActionListCollection
{ actionList4, actionList4 }, service.GetComponentActions(component4));
963
Assert.Equal(new
DesignerActionListCollection
{ actionList3 }, service.GetComponentActions(component3));