using System.ComponentModel;
using MECF.Framework.UI.Client.ClientBase.Tree;
namespace MECF.Framework.UI.Client.ClientBase.EventArgs
{
    public class TreeNodeSelectionChangedEventArgs : CancelEventArgs
    {
        #region Constructors
        public TreeNodeSelectionChangedEventArgs(TreeNode source, bool? oldValue, bool? newValue)
        {
            Source = source;
            OldValue = oldValue;
            NewValue = newValue;
        }
        #endregion
        #region Properties
        /// 
        /// 触发事件的对象。
        /// 
        public TreeNode Source { get; }
        /// 
        /// 返回IsSelected旧值。
        /// 
        public bool? OldValue { get; }
        
        /// 
        /// 返回IsSelected新值。
        /// 
        public bool? NewValue { get; }
        #endregion
    }
}