13 writes to listposition
System.Windows.Forms (13)
winforms\Managed\System\WinForms\CurrencyManager.cs (11)
203
listposition
= 0;
205
listposition
= -1;
344
this.
listposition
= -1;
377
this.
listposition
= Math.Min(newPosition, Count - 1);
425
listposition
= lastGoodKnownRow;
482
listposition
= i;
490
listposition
= i;
621
listposition
= -1;
895
listposition
= 0;
898
listposition
= -1;
918
this.
listposition
= (this.list != null && this.list.Count != 0) ? 0:-1;
winforms\Managed\System\WinForms\RelatedCurrencyManager.cs (2)
149
listposition
= (Count > 0 ? 0 : -1);
177
listposition
= (Count > 0 ? 0 : -1);
39 references to listposition
System.Windows.Forms (39)
winforms\Managed\System\WinForms\CurrencyManager.cs (37)
260
return
listposition
;
263
if (
listposition
== -1)
272
ChangeRecordState(value,
listposition
!= value, true, true, false); // true for endCurrentEdit
343
if (
listposition
!= -1) {
359
int oldPosition =
listposition
;
383
bool positionChanging = (oldPosition !=
listposition
);
404
int initialPosition =
listposition
;
417
lastGoodKnownRow =
listposition
;
428
lastGoodKnownRow =
listposition
;
431
return initialPosition !=
listposition
;
597
Debug.Assert(lastGoodKnownRow == -1 || lastGoodKnownRow ==
listposition
, "if we have a valid lastGoodKnownRow, then it should equal the position in the list");
615
int oldposition =
listposition
;
657
if (
listposition
== -1 && list.Count > 0)
660
ChangeRecordState(Math.Min(
listposition
,list.Count - 1), true, false, true, false);
666
if (dbe.NewIndex <=
listposition
&&
listposition
< list.Count - 1) {
669
ChangeRecordState(
listposition
+ 1, true, true,
listposition
!= list.Count - 2, false);
675
if (
listposition
== list.Count - 1)
678
} else if (dbe.NewIndex == this.
listposition
&& this.
listposition
== list.Count - 1 && this.
listposition
!= -1) {
686
if (
listposition
== -1) {
700
if (dbe.NewIndex ==
listposition
) {
703
ChangeRecordState(Math.Min(
listposition
, Count - 1), true, false, true, false);
710
if (dbe.NewIndex <
listposition
) {
713
ChangeRecordState(
listposition
- 1, true, false, true, false);
724
if (dbe.NewIndex == this.
listposition
) {
732
if (dbe.OldIndex ==
listposition
) { // current got moved.
736
else if (dbe.NewIndex ==
listposition
) { // current was moved
750
if (
listposition
== -1 && list.Count > 0)
752
else if (
listposition
> list.Count - 1)
767
Debug.Assert(lastGoodKnownRow == -1 ||
listposition
== lastGoodKnownRow, "how did they get out of sync?");
841
if ((e.Index ==
listposition
|| (e.Index == -1 && Position < Count)) && !inChangeRecordState)
874
Debug.WriteLineIf(CompModSwitches.DataView.TraceVerbose, "OnPositionChanged(" +
listposition
.ToString(CultureInfo.InvariantCulture) + ") " + e.ToString());
893
if (
listposition
>= list.Count) {
961
bool newBound = list != null && list.Count > 0 && shouldBind &&
listposition
!= -1;
winforms\Managed\System\WinForms\RelatedCurrencyManager.cs (2)
133
int oldlistposition = this.
listposition
;
179
if (oldlistposition !=
listposition
)