21 instantiations of ControlItem
System.Windows.Forms (1)
System\Windows\Forms\ErrorProvider\ErrorProvider.cs (1)
723
item = new
ControlItem
(this, control, ++_itemIdCounter);
System.Windows.Forms.Tests (20)
System\Windows\Forms\AccessibleObjects\ErrorProvider.ControlItem.ControlItemAccessibleObjectTests.cs (12)
50
ControlItem item =
new
(provider, control, 100);
122
ControlItem item =
new
(provider, control, 100) { Error = testError };
149
ControlItem item =
new
(provider, control, 100);
190
ControlItem item1 =
new
(provider, control, 100);
191
ControlItem item2 =
new
(provider, control, 200);
192
ControlItem item3 =
new
(provider, control, 300);
232
ControlItem item1 =
new
(provider, control, 100);
233
ControlItem item2 =
new
(provider, control, 200);
234
ControlItem item3 =
new
(provider, control, 300);
265
ControlItem item1 =
new
(provider, control, 100);
266
ControlItem item2 =
new
(provider, control, 200);
267
ControlItem item3 =
new
(provider, control, 300);
System\Windows\Forms\AccessibleObjects\ErrorProvider.ErrorWindow.ErrorWindowAccessibleObjectTests.cs (8)
111
window.ControlItems.Add(
new
(provider, control, i));
127
ControlItem item1 =
new
(provider, control, 100);
128
ControlItem item2 =
new
(provider, control, 200);
149
ControlItem item1 =
new
(provider, control, 100);
150
ControlItem item2 =
new
(provider, control, 200);
167
ControlItem item1 =
new
(provider, control, 100);
168
ControlItem item2 =
new
(provider, control, 200);
169
ControlItem item3 =
new
(provider, control, 300);
50 references to ControlItem
System.Windows.Forms (16)
System\Windows\Forms\ErrorProvider\ErrorProvider.ControlItem.ControlItemAccessibleObject.cs (2)
16
private readonly
ControlItem
_controlItem;
22
ControlItem
controlItem,
System\Windows\Forms\ErrorProvider\ErrorProvider.cs (6)
25
private readonly Dictionary<Control,
ControlItem
> _items = [];
467
foreach (
ControlItem
ctl in _items.Values)
669
foreach (
ControlItem
item in _items.Values)
717
private
ControlItem
EnsureControlItem(Control control)
721
if (!_items.TryGetValue(control, out
ControlItem
? item))
789
ControlItem
controlItem = EnsureControlItem(control);
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (7)
22
private readonly List<
ControlItem
> _items = [];
46
public void Add(
ControlItem
item)
63
internal List<
ControlItem
> ControlItems => _items;
194
ControlItem
item = _items[i];
256
public void Remove(
ControlItem
item)
311
ControlItem
item = _items[i];
320
ControlItem
item = _items[i];
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.ErrorWindowAccessibleObject.cs (1)
68
foreach (
ControlItem
control in _owner.ControlItems)
System.Windows.Forms.Tests (34)
System\Windows\Forms\AccessibleObjects\ErrorProvider.ControlItem.ControlItemAccessibleObjectTests.cs (25)
19
Type type = typeof(
ControlItem
)
34
Type type = typeof(
ControlItem
)
50
ControlItem
item = new(provider, control, 100);
54
Type type = typeof(
ControlItem
)
69
Type type = typeof(
ControlItem
)
84
Type type = typeof(
ControlItem
)
95
Type type = typeof(
ControlItem
)
105
Type type = typeof(
ControlItem
)
122
ControlItem
item = new(provider, control, 100) { Error = testError };
136
Type type = typeof(
ControlItem
)
149
ControlItem
item = new(provider, control, 100);
152
Type type = typeof(
ControlItem
)
164
Type type = typeof(
ControlItem
)
174
Type type = typeof(
ControlItem
)
190
ControlItem
item1 = new(provider, control, 100);
191
ControlItem
item2 = new(provider, control, 200);
192
ControlItem
item3 = new(provider, control, 300);
196
Type type = typeof(
ControlItem
)
217
Type type = typeof(
ControlItem
)
232
ControlItem
item1 = new(provider, control, 100);
233
ControlItem
item2 = new(provider, control, 200);
234
ControlItem
item3 = new(provider, control, 300);
265
ControlItem
item1 = new(provider, control, 100);
266
ControlItem
item2 = new(provider, control, 200);
267
ControlItem
item3 = new(provider, control, 300);
System\Windows\Forms\AccessibleObjects\ErrorProvider.ErrorWindow.ErrorWindowAccessibleObjectTests.cs (7)
127
ControlItem
item1 = new(provider, control, 100);
128
ControlItem
item2 = new(provider, control, 200);
149
ControlItem
item1 = new(provider, control, 100);
150
ControlItem
item2 = new(provider, control, 200);
167
ControlItem
item1 = new(provider, control, 100);
168
ControlItem
item2 = new(provider, control, 200);
169
ControlItem
item3 = new(provider, control, 300);
System\Windows\Forms\AccessibleObjects\ErrorProviderAccessibleObjectTests.cs (2)
18
private readonly ErrorProvider.
ControlItem
_controlItem1;
19
private readonly ErrorProvider.
ControlItem
_controlItem2;