2 writes to list
System.Windows.Forms (2)
winforms\Managed\System\WinForms\CurrencyManager.cs (2)
183this.list = null; 200this.list = (IList)tempList;
81 references to list
System.Windows.Forms (81)
winforms\Managed\System\WinForms\CurrencyManager.cs (81)
103if (list is IBindingList) { 104return ((IBindingList)list).AllowNew; 106if (list == null) 108return !list.IsReadOnly && !list.IsFixedSize; 118if (list is IBindingList) { 119return ((IBindingList)list).AllowEdit; 121if (list == null) 123return !list.IsReadOnly; 132if (list is IBindingList) { 133return ((IBindingList)list).AllowRemove; 135if (list == null) 137return !list.IsReadOnly && !list.IsFixedSize; 147if (list == null) 150return list.Count; 201WireEvents(list); 202if (list.Count > 0 ) 250return list; 268int count = list.Count; 283if (index < 0 || index >= list.Count) { 286return list[index]; 289if (index < 0 || index >= list.Count) { 292list[index] = value; 301IBindingList ibl = list as IBindingList; 310ChangeRecordState(list.Count - 1, (Position != list.Count - 1), (Position != list.Count - 1), true, true); // true for firingPositionChangeNotification 320Object item = (Position >= 0 && Position < list.Count) ? list[Position] : null; 329ICancelAddNew iListWithCancelAddNewSupport = list as ICancelAddNew; 342if (newPosition == -1 && list.Count == 0) { 394if (dataSource == null || list == null || list.Count == 0) { 452list.RemoveAt(index); 464Object item = (Position >= 0 && Position < list.Count) ? list[Position] : null; 471ICancelAddNew iListWithCancelAddNewSupport = list as ICancelAddNew; 480int rowCount = this.list.Count; 503if (list is IBindingList && ((IBindingList)list).SupportsSorting) { 504((IBindingList)list).ApplySort(property, sortDirection); 512if ((list is IBindingList) && ((IBindingList)list).SupportsSorting) { 513return ((IBindingList)list).SortProperty; 522if ((list is IBindingList) && ((IBindingList)list).SupportsSorting) { 523return ((IBindingList)list).SortDirection; 535if (property != null && (list is IBindingList) && ((IBindingList)list).SupportsSearching) { 536return ((IBindingList)list).Find(property, key); 540for (int i = 0; i < list.Count; i++) { 541object value = property.GetValue(list[i]); 555if (list is ITypedList) { 556return ((ITypedList)list).GetListName(null); 568if (list is ITypedList) { 571return ((ITypedList)list).GetListName(properties); 579return ListBindingHelper.GetListItemProperties(this.list, listAccessors); 620if (list.Count == 0) { 656Debug.WriteLineIf(CompModSwitches.DataCursor.TraceVerbose, "System.ComponentModel.ListChangedType.Reset Position: " + Position + " Count: " + list.Count); 657if (listposition == -1 && list.Count > 0) 660ChangeRecordState(Math.Min(listposition,list.Count - 1), true, false, true, false); 666if (dbe.NewIndex <= listposition && listposition < list.Count - 1) { 669ChangeRecordState(listposition + 1, true, true, listposition != list.Count - 2, false); 675if (listposition == list.Count - 1) 678} else if (dbe.NewIndex == this.listposition && this.listposition == list.Count - 1 && this.listposition != -1) { 734ChangeRecordState(dbe.NewIndex, true, this.Position > -1 && this.Position < list.Count, true, false); 738ChangeRecordState(dbe.OldIndex, true, this.Position > -1 && this.Position < list.Count, true, false); 750if (listposition == -1 && list.Count > 0) 752else if (listposition > list.Count - 1) 753ChangeRecordState(list.Count - 1, true, false, true, false); 794Object item = list[Position]; 892if (list.Count > 0 ) { 893if (listposition >= list.Count) { 900List_ListChanged(list, new System.ComponentModel.ListChangedEventArgs(System.ComponentModel.ListChangedType.Reset, -1)); 904UnwireEvents(list); 918this.listposition = (this.list != null && this.list.Count != 0) ? 0:-1; 961bool newBound = list != null && list.Count > 0 && shouldBind && listposition != -1; 962if (list != null)