1 write to Action
System.ComponentModel.TypeConverter (1)
System\ComponentModel\CollectionChangeEventArgs.cs (1)
16
Action
= action;
48 references to Action
System.Data.Common (18)
System\Data\DataView.cs (9)
1636
e.
Action
== CollectionChangeAction.Add ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorAdded, new DataRelationPropertyDescriptor((System.Data.DataRelation)e.Element!)) :
1637
e.
Action
== CollectionChangeAction.Refresh ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorChanged, NullProp) :
1638
e.
Action
== CollectionChangeAction.Remove ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorDeleted, new DataRelationPropertyDescriptor((System.Data.DataRelation)e.Element!)) :
1647
e.
Action
== CollectionChangeAction.Add ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorAdded, new DataRelationPropertyDescriptor((System.Data.DataRelation)e.Element!)) :
1648
e.
Action
== CollectionChangeAction.Refresh ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorChanged, NullProp) :
1649
e.
Action
== CollectionChangeAction.Remove ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorDeleted, new DataRelationPropertyDescriptor((System.Data.DataRelation)e.Element!)) :
1658
e.
Action
== CollectionChangeAction.Add ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorAdded, new DataColumnPropertyDescriptor((System.Data.DataColumn)e.Element!)) :
1659
e.
Action
== CollectionChangeAction.Refresh ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorChanged, NullProp) :
1660
e.
Action
== CollectionChangeAction.Remove ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorDeleted, new DataColumnPropertyDescriptor((System.Data.DataColumn)e.Element!)) :
System\Data\DataViewManager.cs (6)
334
e.
Action
== CollectionChangeAction.Add ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorAdded, new DataTablePropertyDescriptor((System.Data.DataTable)e.Element!)) :
335
e.
Action
== CollectionChangeAction.Refresh ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorChanged, NullProp) :
336
e.
Action
== CollectionChangeAction.Remove ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorDeleted, new DataTablePropertyDescriptor((System.Data.DataTable)e.Element!)) :
345
e.
Action
== CollectionChangeAction.Add ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorAdded, new DataRelationPropertyDescriptor((System.Data.DataRelation)e.Element!)) :
346
e.
Action
== CollectionChangeAction.Refresh ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorChanged, NullProp) :
347
e.
Action
== CollectionChangeAction.Remove ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorDeleted, new DataRelationPropertyDescriptor((System.Data.DataRelation)e.Element!)) :
System\Xml\XmlDataDocument.cs (3)
2209
Debug.Assert(!(args.
Action
== CollectionChangeAction.Add || args.
Action
== CollectionChangeAction.Remove) || rel!.Nested == false);
2210
if (args.
Action
== CollectionChangeAction.Refresh)
System.Windows.Forms (15)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (2)
13255
if (ccea.
Action
== CollectionChangeAction.Add)
13263
else if (ccea.
Action
== CollectionChangeAction.Refresh)
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnCollection.cs (2)
975
if (ccea.
Action
== CollectionChangeAction.Add && changeIsInsertion)
979
else if (ccea.
Action
== CollectionChangeAction.Remove && dataGridViewColumn is not null)
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (9)
1910
Debug.Assert(e.
Action
!= CollectionChangeAction.Remove);
1914
if (dataGridViewRow is not null && e.
Action
== CollectionChangeAction.Add)
1919
OnCollectionChanged_PreNotification(e.
Action
, rowIndex, rowCount, ref dataGridViewRow, false);
1923
e = new CollectionChangeEventArgs(e.
Action
, dataGridViewRow);
1927
OnCollectionChanged_PostNotification(e.
Action
, rowIndex, rowCount, dataGridViewRow, false, false, false, newCurrentCell);
1940
if (dataGridViewRow is not null && e.
Action
== CollectionChangeAction.Add)
1945
OnCollectionChanged_PreNotification(e.
Action
, rowIndex, rowCount, ref dataGridViewRow, changeIsInsertion);
1949
e = new CollectionChangeEventArgs(e.
Action
, dataGridViewRow);
1953
OnCollectionChanged_PostNotification(e.
Action
, rowIndex, rowCount, dataGridViewRow, changeIsDeletion, changeIsInsertion, recreateNewRow, newCurrentCell);
System\Windows\Forms\DataBinding\BindingManagerBase.cs (2)
304
switch (e.
Action
)
324
if (e.
Action
!= CollectionChangeAction.Refresh)
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
97
if (e.
Action
== CollectionChangeAction.Add)
System.Windows.Forms.Tests (14)
System\Windows\Forms\BindingContextTests.cs (2)
973
if (e.
Action
== CollectionChangeAction.Remove)
1001
if (e.
Action
== CollectionChangeAction.Remove)
System\Windows\Forms\BindingsCollectionTests.cs (12)
46
Assert.Equal(CollectionChangeAction.Add, e.
Action
);
54
Assert.Equal(CollectionChangeAction.Add, e.
Action
);
112
Assert.Equal(CollectionChangeAction.Add, e.
Action
);
120
Assert.Equal(CollectionChangeAction.Add, e.
Action
);
181
Assert.Equal(CollectionChangeAction.Refresh, e.
Action
);
189
Assert.Equal(CollectionChangeAction.Refresh, e.
Action
);
241
Assert.Equal(CollectionChangeAction.Refresh, e.
Action
);
249
Assert.Equal(CollectionChangeAction.Refresh, e.
Action
);
312
Assert.Equal(CollectionChangeAction.Remove, e.
Action
);
320
Assert.Equal(CollectionChangeAction.Remove, e.
Action
);
417
Assert.Equal(CollectionChangeAction.Remove, e.
Action
);
425
Assert.Equal(CollectionChangeAction.Remove, e.
Action
);