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