using System; using JD.TeaBoxAddinSystem.Addins.Internal; namespace JD.TeaBoxAddinSystem.Addins { /// /// ExtensionNode Changed EventArgs /// public class ExtensionNodeChangedEventArgs : EventArgs { #region Variables private readonly string m_path; private readonly TreeNode m_node; #endregion #region Constructor internal ExtensionNodeChangedEventArgs(TreeNode node) { System.Diagnostics.Debug.Assert(node != null); m_path = node.FullPath; m_node = node; } internal ExtensionNodeChangedEventArgs(string path) { m_path = path; m_node = null; } #endregion #region Properties /// /// Path of the node where the change occurs. /// public string Path { get { return m_path; } } /// /// ExtensionNode involved in the change. /// public ExtensionNode ExtensionNode { get { return m_node == null ? null : m_node.ExtensionNode; } } #endregion } }