using System;
namespace DevComponents.Tree
{
///
/// Represents event arguments for NodeCollection based events, like BeforeNodeInsert, AfterNodeInsert etc.
///
public class TreeGXNodeCollectionEventArgs : TreeGXNodeEventArgs
{
///
/// Creates new instance of the class.
///
/// Source action
/// Affected node
/// Parent of the node if any
public TreeGXNodeCollectionEventArgs(eTreeAction action, Node node, Node parentNode):base(action, node)
{
this.ParentNode = parentNode;
}
///
/// Indicates parent node of the affected node. For example if event handled is BeforeNodeInsert parent of the Node is has
/// not been set yet so this property provides information on the node that will become parent. If this property returns null
/// then node is being added or removed from the main TreeGX.Nodes collection.
///
public DevComponents.Tree.Node ParentNode=null;
}
}