43 references to Action
System.Data (18)
fx\src\data\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)) :
1646
e.
Action
== CollectionChangeAction.Add ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorAdded, new DataRelationPropertyDescriptor((System.Data.DataRelation)e.Element)) :
1647
e.
Action
== CollectionChangeAction.Refresh ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorChanged, NullProp):
1648
e.
Action
== CollectionChangeAction.Remove ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorDeleted, new DataRelationPropertyDescriptor((System.Data.DataRelation)e.Element)) :
1656
e.
Action
== CollectionChangeAction.Add ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorAdded, new DataColumnPropertyDescriptor((System.Data.DataColumn)e.Element)) :
1657
e.
Action
== CollectionChangeAction.Refresh ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorChanged, NullProp):
1658
e.
Action
== CollectionChangeAction.Remove ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorDeleted, new DataColumnPropertyDescriptor((System.Data.DataColumn)e.Element)) :
fx\src\data\System\Data\DataViewManager.cs (6)
366
e.
Action
== CollectionChangeAction.Add ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorAdded, new DataTablePropertyDescriptor((System.Data.DataTable)e.Element)) :
367
e.
Action
== CollectionChangeAction.Refresh ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorChanged, NullProp) :
368
e.
Action
== CollectionChangeAction.Remove ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorDeleted, new DataTablePropertyDescriptor((System.Data.DataTable)e.Element)) :
376
e.
Action
== CollectionChangeAction.Add ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorAdded, new DataRelationPropertyDescriptor((System.Data.DataRelation)e.Element)) :
377
e.
Action
== CollectionChangeAction.Refresh ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorChanged, NullProp):
378
e.
Action
== CollectionChangeAction.Remove ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorDeleted, new DataRelationPropertyDescriptor((System.Data.DataRelation)e.Element)) :
fx\src\data\System\NewXml\XmlDataDocument.cs (3)
1989
Debug.Assert( ! (args.
Action
== CollectionChangeAction.Add || args.
Action
== CollectionChangeAction.Remove) || rel.Nested == false );
1990
if ( args.
Action
== CollectionChangeAction.Refresh ) {
System.Data.Entity (3)
System\Data\Objects\ObjectViewEntityCollectionData.cs (1)
186
switch (e.
Action
)
System\Data\Objects\ObjectViewQueryResultData.cs (2)
233
Debug.Assert(e.
Action
!= CollectionChangeAction.Refresh, "Cache should never fire with refresh, it does not have clear");
235
if (e.
Action
== CollectionChangeAction.Remove)
System.Windows.Forms (22)
winforms\Managed\System\WinForms\BindingMAnagerBase.cs (2)
419
switch (e.
Action
) {
435
if (e.
Action
== CollectionChangeAction.Refresh) {
winforms\Managed\System\WinForms\DataGrid.cs (4)
3280
if (ccea.
Action
== CollectionChangeAction.Add) {
3287
} else if (ccea.
Action
== CollectionChangeAction.Remove) {
3296
Debug.Assert(ccea.
Action
== CollectionChangeAction.Refresh, "what else is possible?");
7107
if (e.
Action
!= CollectionChangeAction.Refresh || e.Element == null)
winforms\Managed\System\WinForms\DataGridTable.cs (3)
1675
if (e.
Action
== CollectionChangeAction.Add) {
1678
} else if (e.
Action
== CollectionChangeAction.Remove) {
1683
Debug.Assert(e.
Action
== CollectionChangeAction.Refresh, "there are only Add, Remove and Refresh in the CollectionChangeAction");
winforms\Managed\System\WinForms\DataGridViewColumnCollection.cs (2)
1087
if (ccea.
Action
== CollectionChangeAction.Add && changeIsInsertion)
1091
else if (ccea.
Action
== CollectionChangeAction.Remove)
winforms\Managed\System\WinForms\DataGridViewMethods.cs (2)
13713
if (ccea.
Action
== CollectionChangeAction.Add)
13721
else if (ccea.
Action
== CollectionChangeAction.Refresh)
winforms\Managed\System\WinForms\DataGridViewRowCollection.cs (9)
2042
Debug.Assert(e.
Action
!= CollectionChangeAction.Remove);
2046
if (dataGridViewRow != null && e.
Action
== CollectionChangeAction.Add)
2050
OnCollectionChanged_PreNotification(e.
Action
, rowIndex, rowCount, ref dataGridViewRow, false);
2054
e = new CollectionChangeEventArgs(e.
Action
, dataGridViewRow);
2057
OnCollectionChanged_PostNotification(e.
Action
, rowIndex, rowCount, dataGridViewRow, false, false, false, newCurrentCell);
2070
if (dataGridViewRow != null && e.
Action
== CollectionChangeAction.Add)
2074
OnCollectionChanged_PreNotification(e.
Action
, rowIndex, rowCount, ref dataGridViewRow, changeIsInsertion);
2078
e = new CollectionChangeEventArgs(e.
Action
, dataGridViewRow);
2081
OnCollectionChanged_PostNotification(e.
Action
, rowIndex, rowCount, dataGridViewRow, changeIsDeletion, changeIsInsertion, recreateNewRow, newCurrentCell);