2 writes to OldIndex
System.ComponentModel.TypeConverter (2)
System\ComponentModel\ListChangedEventArgs.cs (2)
18
OldIndex
= newIndex;
31
OldIndex
= oldIndex;
21 references to OldIndex
PresentationFramework (6)
System\Windows\Data\BindingListCollectionView.cs (6)
1981
if (IsAddingNew && args.
OldIndex
== _newItemIndex)
1988
forwardedArgs = ProcessCommitNew(args.
OldIndex
, index + delta);
1994
forwardedArgs = new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Move, item, index+delta, args.
OldIndex
+delta);
1995
if (args.
OldIndex
< _newItemIndex && _newItemIndex < args.NewIndex)
1999
else if (args.NewIndex <= _newItemIndex && _newItemIndex < args.
OldIndex
)
2005
_cachedList.RemoveAt(args.
OldIndex
);
System.Data.Common (6)
System\Data\DataView.cs (6)
1268
if (_addNewMoved.NewIndex == _addNewMoved.
OldIndex
)
1376
Debug.Assert(((ListChangedType.ItemChanged == e.ListChangedType) && ((e.NewIndex == e.
OldIndex
) || (-1 == e.
OldIndex
))) ||
1377
(ListChangedType.ItemMoved == e.ListChangedType && (e.NewIndex != e.
OldIndex
) && (0 <= e.
OldIndex
)),
1404
if ((col != null) && (e.NewIndex == e.
OldIndex
))
System.Windows.Forms (9)
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (3)
616
Debug.Assert(e.
OldIndex
> -1, "the currency manager should have taken care of this case");
618
int lo = Math.Min(e.
OldIndex
, e.NewIndex);
619
int hi = Math.Max(e.
OldIndex
, e.NewIndex);
System\Windows\Forms\DataBinding\CurrencyManager.cs (6)
625
if (e.ListChangedType == ListChangedType.ItemMoved && e.
OldIndex
< 0)
627
dbe = new ListChangedEventArgs(ListChangedType.ItemAdded, e.NewIndex, e.
OldIndex
);
631
dbe = new ListChangedEventArgs(ListChangedType.ItemDeleted, e.
OldIndex
, e.NewIndex);
772
if (dbe.
OldIndex
== listposition)
782
ChangeRecordState(dbe.
OldIndex
, true, Position > -1 && Position < _list.Count, true, false);
1059
if (e.
OldIndex
== _lastGoodKnownRow)