XmlNodeChangedEventArgs.cs 967 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. using System;
  2. namespace System.Xml
  3. {
  4. /// <summary>
  5. /// Passed to delegates on document tree changes
  6. /// </summary>
  7. public class XmlNodeChangedEventArgs
  8. {
  9. // Private data members
  10. XmlNode _oldParent;
  11. XmlNode _newParent;
  12. XmlNodeChangedAction _action;
  13. XmlNode _node;
  14. // public properties
  15. public XmlNodeChangedAction Action
  16. {
  17. get
  18. {
  19. return _action;
  20. }
  21. }
  22. public XmlNode Node
  23. {
  24. get
  25. {
  26. return _node;
  27. }
  28. }
  29. public XmlNode OldParent
  30. {
  31. get
  32. {
  33. return _oldParent;
  34. }
  35. }
  36. public XmlNode NewParent
  37. {
  38. get
  39. {
  40. return _newParent;
  41. }
  42. }
  43. // Public Methods
  44. // Internal Methods
  45. internal XmlNodeChangedEventArgs(
  46. XmlNodeChangedAction action,
  47. XmlNode node,
  48. XmlNode oldParent,
  49. XmlNode newParent)
  50. {
  51. _node = node;
  52. _oldParent = oldParent;
  53. _newParent = newParent;
  54. _action = action;
  55. }
  56. }
  57. }