| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- using System;
- namespace System.Xml
- {
- /// <summary>
- /// Passed to delegates on document tree changes
- /// </summary>
- #if NET_2_0
- public class XmlNodeChangedEventArgs : EventArgs
- #else
- public class XmlNodeChangedEventArgs
- #endif
- {
- // Private data members
- XmlNode _oldParent;
- XmlNode _newParent;
- XmlNodeChangedAction _action;
- XmlNode _node;
- // public properties
- public XmlNodeChangedAction Action
- {
- get
- {
- return _action;
- }
- }
- public XmlNode Node
- {
- get
- {
- return _node;
- }
- }
- public XmlNode OldParent
- {
- get
- {
- return _oldParent;
- }
- }
- public XmlNode NewParent
- {
- get
- {
- return _newParent;
- }
- }
- #if NET_2_0
- public string OldValue
- {
- get
- {
- throw new NotImplementedException ();
- }
- }
-
- public string NewValue
- {
- get
- {
- throw new NotImplementedException ();
- }
- }
- #endif
- // Public Methods
- // Internal Methods
- internal XmlNodeChangedEventArgs(
- XmlNodeChangedAction action,
- XmlNode node,
- XmlNode oldParent,
- XmlNode newParent)
- {
- _node = node;
- _oldParent = oldParent;
- _newParent = newParent;
- _action = action;
- }
- }
- }
|