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