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