using System;
using System.Windows.Forms;
namespace DevComponents.AdvTree
{
	/// 
	/// Provides data for AdvTree Cell events that can be canceled.
	/// 
	public class TreeCellCancelEventArgs:AdvTreeCellEventArgs
	{
		/// 
		/// Default constructor for event data.
		/// 
		/// Type of the action event is raised for.
		/// Cell that event is raised for.
		public TreeCellCancelEventArgs(eTreeAction action, Cell cell):base(action,cell)
		{
		}
		
		/// 
		/// Indicates that event action should be canceled.
		/// 
		public bool Cancel=false;
	}
    /// 
    /// Provides data for AdvTree.BeforeCheck event.
    /// 
    public class AdvTreeCellBeforeCheckEventArgs : TreeCellCancelEventArgs
    {
        public CheckState NewCheckState = CheckState.Indeterminate;
        /// 
        /// Initializes a new instance of the AdvTreeCellBeforeCheckEventArgs class.
        /// 
        /// 
        public AdvTreeCellBeforeCheckEventArgs(eTreeAction action, Cell cell, CheckState newCheckState)
            : base(action, cell)
        {
            NewCheckState = newCheckState;
        }
    }
}