3 writes to _list
System.Windows.Forms (3)
System\Windows\Forms\DataBinding\CurrencyManager.cs (3)
55
_list
= null!;
150
_list
= null!;
169
_list
= list;
67 references to _list
System.Windows.Forms (67)
System\Windows\Forms\DataBinding\CurrencyManager.cs (67)
67
if (
_list
is IBindingList bindingList)
72
if (
_list
is null)
77
return !
_list
.IsReadOnly && !
_list
.IsFixedSize;
89
if (
_list
is IBindingList bindingList)
94
if (
_list
is null)
99
return !
_list
.IsReadOnly;
110
if (
_list
is IBindingList bindingList)
115
if (
_list
is null)
120
return !
_list
.IsReadOnly && !
_list
.IsFixedSize;
127
public override int Count =>
_list
is null ? 0 :
_list
.Count;
170
WireEvents(
_list
);
171
if (
_list
.Count > 0)
212
return
_list
;
234
int count =
_list
.Count;
256
if (index < 0 || index >=
_list
.Count)
261
return
_list
[index];
265
if (index < 0 || index >=
_list
.Count)
270
_list
[index] = value;
276
if (
_list
is IBindingList ibl)
287
_list
.Count - 1,
288
validating: (Position !=
_list
.Count - 1),
289
endCurrentEdit: (Position !=
_list
.Count - 1),
301
object? item = (Position >= 0 && Position <
_list
.Count) ?
_list
[Position] : null;
308
if (
_list
is ICancelAddNew iListWithCancelAddNewSupport)
328
if (newPosition == -1 &&
_list
.Count == 0)
391
if (_dataSource is null ||
_list
is null ||
_list
.Count == 0)
461
public override void RemoveAt(int index) =>
_list
.RemoveAt(index);
474
object? item = (Position >= 0 && Position <
_list
.Count) ?
_list
[Position] : null;
481
if (
_list
is ICancelAddNew iListWithCancelAddNewSupport)
491
int rowCount =
_list
.Count;
520
if (
_list
is IBindingList { SupportsSorting: true } bindingList)
531
if (
_list
is IBindingList { SupportsSorting: true } bindingList)
544
if (
_list
is IBindingList { SupportsSorting: true } bindingList)
559
if (property is not null &&
_list
is IBindingList { SupportsSearching: true } bindingList)
566
for (int i = 0; i <
_list
.Count; i++)
568
object? value = property.GetValue(
_list
[i]);
583
_list
is ITypedList typedList
597
if (
_list
is ITypedList typedList)
608
ListBindingHelper.GetListItemProperties(
_list
, listAccessors);
643
if (
_list
.Count == 0)
684
if (listposition == -1 &&
_list
.Count > 0)
690
ChangeRecordState(Math.Min(listposition,
_list
.Count - 1), true, false, true, false);
697
if (dbe.NewIndex <= listposition && listposition <
_list
.Count - 1)
701
ChangeRecordState(listposition + 1, true, true, listposition !=
_list
.Count - 2, false);
707
if (listposition ==
_list
.Count - 1)
714
else if (dbe.NewIndex == listposition && listposition ==
_list
.Count - 1 && listposition != -1)
776
ChangeRecordState(dbe.NewIndex, true, Position > -1 && Position <
_list
.Count, true, false);
782
ChangeRecordState(dbe.OldIndex, true, Position > -1 && Position <
_list
.Count, true, false);
795
if (listposition == -1 &&
_list
.Count > 0)
799
else if (listposition >
_list
.Count - 1)
801
ChangeRecordState(
_list
.Count - 1, true, false, true, false);
845
object? item =
_list
[Position];
939
if (
_list
.Count > 0)
941
if (listposition >=
_list
.Count)
952
List_ListChanged(
_list
, new ListChangedEventArgs(ListChangedType.Reset, -1));
957
UnwireEvents(
_list
);
972
listposition = (
_list
is not null &&
_list
.Count != 0) ? 0 : -1;
1012
bool newBound =
_list
is not null &&
_list
.Count > 0 && ShouldBind && listposition != -1;
1013
if (
_list
is not null)