CollectionChangeEventArgs.cs 709 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // System.ComponentModel.CollectionChangeEventArgs.cs
  3. //
  4. // Author:
  5. // Rodrigo Moya ([email protected])
  6. //
  7. // (C) Ximian, Inc
  8. //
  9. namespace System.ComponentModel
  10. {
  11. /// <summary>
  12. /// Provides data for the CollectionChanged event.
  13. /// </summary>
  14. public class CollectionChangeEventArgs : EventArgs
  15. {
  16. private CollectionChangeAction changeAction;
  17. private object theElement;
  18. public CollectionChangeEventArgs (CollectionChangeAction action,
  19. object element) {
  20. changeAction = action;
  21. theElement = element;
  22. }
  23. public virtual CollectionChangeAction Action {
  24. get {
  25. return changeAction;
  26. }
  27. }
  28. public virtual object Element {
  29. get {
  30. return theElement;
  31. }
  32. }
  33. }
  34. }