21 references to OldIndex
PresentationFramework (6)
src\Framework\System\Windows\Data\BindingListCollectionView.cs (6)
1988
if (IsAddingNew && args.
OldIndex
== _newItemIndex)
1995
forwardedArgs = ProcessCommitNew(args.
OldIndex
, index + delta);
2001
forwardedArgs = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Move, item, index+delta, args.
OldIndex
+delta);
2002
if (args.
OldIndex
< _newItemIndex && _newItemIndex < args.NewIndex)
2006
else if (args.NewIndex <= _newItemIndex && _newItemIndex < args.
OldIndex
)
2012
_cachedList.RemoveAt(args.
OldIndex
);
System.Data (6)
fx\src\data\System\Data\DataView.cs (6)
1309
if (addNewMoved.NewIndex == addNewMoved.
OldIndex
) {
1403
Debug.Assert(((ListChangedType.ItemChanged == e.ListChangedType) && ((e.NewIndex == e.
OldIndex
) || (-1 == e.
OldIndex
))) ||
1404
(ListChangedType.ItemMoved == e.ListChangedType && (e.NewIndex != e.
OldIndex
) && (0 <= e.
OldIndex
)),
1428
if ((col != null) && (e.NewIndex == e.
OldIndex
)) {
System.Windows.Forms (9)
winforms\Managed\System\WinForms\CurrencyManager.cs (6)
607
if (e.ListChangedType == ListChangedType.ItemMoved && e.
OldIndex
< 0) {
608
dbe = new ListChangedEventArgs(ListChangedType.ItemAdded, e.NewIndex, e.
OldIndex
);
610
dbe = new ListChangedEventArgs(ListChangedType.ItemDeleted, e.
OldIndex
, e.NewIndex);
732
if (dbe.
OldIndex
== listposition) { // current got moved.
738
ChangeRecordState(dbe.
OldIndex
, true, this.Position > -1 && this.Position < list.Count, true, false);
995
if (e.
OldIndex
== lastGoodKnownRow)
winforms\Managed\System\WinForms\DataGridViewDataConnection.cs (3)
704
Debug.Assert(e.
OldIndex
> -1, "the currency manager should have taken care of this case");
706
int lo = Math.Min(e.
OldIndex
, e.NewIndex);
707
int hi = Math.Max(e.
OldIndex
, e.NewIndex);