ListChangedEventArgs.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. //
  2. // System.ComponentModel.ListChangedEventArgs.cs
  3. //
  4. // Author: Duncan Mak ([email protected])
  5. //
  6. // (C) Ximian, Inc.
  7. //
  8. using System.ComponentModel;
  9. namespace System.ComponentModel {
  10. public class ListChangedEventArgs : EventArgs
  11. {
  12. ListChangedType changedType;
  13. int oldIndex;
  14. int newIndex;
  15. public ListChangedEventArgs (ListChangedType listChangedType,
  16. int newIndex)
  17. {
  18. this.changedType = listChangedType;
  19. this.newIndex = newIndex;
  20. }
  21. [MonoTODO]
  22. public ListChangedEventArgs (ListChangedType listChangedType,
  23. PropertyDescriptor propDesc)
  24. {
  25. this.changedType = listChangedType;
  26. }
  27. public ListChangedEventArgs (ListChangedType listChangedType,
  28. int newIndex, int oldIndex)
  29. {
  30. this.changedType = listChangedType;
  31. this.newIndex = newIndex;
  32. this.oldIndex = oldIndex;
  33. }
  34. public ListChangedType ListChangedType {
  35. get { return changedType; }
  36. }
  37. public int OldIndex {
  38. get { return oldIndex; }
  39. }
  40. public int NewIndex {
  41. get { return newIndex; }
  42. }
  43. }
  44. }