The Labs \ Source Viewer \ SSCLI \ System.Xml \ XmlNodeChangedEventArgs

  1. //------------------------------------------------------------------------------
  2. // <copyright file="XmlNodeChangedEventArgs.cs" company="Microsoft">
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. // </copyright>
  14. //------------------------------------------------------------------------------
  15. namespace System.Xml
  16. {
  17.     public class XmlNodeChangedEventArgs : EventArgs
  18.     {
  19.         private XmlNodeChangedAction action;
  20.         private XmlNode node;
  21.         private XmlNode oldParent;
  22.         private XmlNode newParent;
  23.         private string oldValue;
  24.         private string newValue;
  25.        
  26.         public XmlNodeChangedEventArgs(XmlNode node, XmlNode oldParent, XmlNode newParent, string oldValue, string newValue, XmlNodeChangedAction action)
  27.         {
  28.             this.node = node;
  29.             this.oldParent = oldParent;
  30.             this.newParent = newParent;
  31.             this.action = action;
  32.             this.oldValue = oldValue;
  33.             this.newValue = newValue;
  34.         }
  35.        
  36.         public XmlNodeChangedAction Action {
  37.             get { return action; }
  38.         }
  39.        
  40.         public XmlNode Node {
  41.             get { return node; }
  42.         }
  43.        
  44.         public XmlNode OldParent {
  45.             get { return oldParent; }
  46.         }
  47.        
  48.         public XmlNode NewParent {
  49.             get { return newParent; }
  50.         }
  51.        
  52.         public string OldValue {
  53.             get { return oldValue; }
  54.         }
  55.        
  56.         public string NewValue {
  57.             get { return newValue; }
  58.         }
  59.     }
  60. }

Developer Fusion