13 writes to listposition
System.Windows.Forms (13)
System\Windows\Forms\DataBinding\CurrencyManager.cs (11)
173
listposition
= 0;
177
listposition
= -1;
332
listposition
= -1;
372
listposition
= Math.Min(newPosition, Count - 1);
434
listposition
= _lastGoodKnownRow;
494
listposition
= i;
505
listposition
= i;
645
listposition
= -1;
944
listposition
= 0;
949
listposition
= -1;
972
listposition
= (_list is not null && _list.Count != 0) ? 0 : -1;
System\Windows\Forms\DataBinding\RelatedCurrencyManager.cs (2)
164
listposition
= (Count > 0 ? 0 : -1);
199
listposition
= (Count > 0 ? 0 : -1);
38 references to listposition
System.Windows.Forms (38)
System\Windows\Forms\DataBinding\CurrencyManager.cs (36)
221
get =>
listposition
;
224
if (
listposition
== -1)
242
validating:
listposition
!= value,
330
if (
listposition
!= -1)
349
int oldPosition =
listposition
;
379
bool positionChanging = (oldPosition !=
listposition
);
405
int initialPosition =
listposition
;
422
_lastGoodKnownRow =
listposition
;
438
_lastGoodKnownRow =
listposition
;
441
return initialPosition !=
listposition
;
622
Debug.Assert(_lastGoodKnownRow == -1 || _lastGoodKnownRow ==
listposition
, "if we have a valid lastGoodKnownRow, then it should equal the position in the list");
638
int oldposition =
listposition
;
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)
723
if (
listposition
== -1)
738
if (dbe.NewIndex ==
listposition
)
742
ChangeRecordState(Math.Min(
listposition
, Count - 1), true, false, true, false);
749
if (dbe.NewIndex <
listposition
)
753
ChangeRecordState(
listposition
- 1, true, false, true, false);
764
if (dbe.NewIndex ==
listposition
)
772
if (dbe.OldIndex ==
listposition
)
778
else if (dbe.NewIndex ==
listposition
)
795
if (
listposition
== -1 && _list.Count > 0)
799
else if (
listposition
> _list.Count - 1)
819
Debug.Assert(_lastGoodKnownRow == -1 ||
listposition
== _lastGoodKnownRow, "how did they get out of sync?");
891
if ((e.Index ==
listposition
|| (e.Index == -1 && Position < Count)) && !_state.HasFlag(CurrencyManagerStates.InChangeRecordState))
941
if (
listposition
>= _list.Count)
1012
bool newBound = _list is not null && _list.Count > 0 && ShouldBind &&
listposition
!= -1;
System\Windows\Forms\DataBinding\RelatedCurrencyManager.cs (2)
145
int oldlistposition =
listposition
;
202
if (oldlistposition !=
listposition
)