using System.ComponentModel; using Sicentury.Core.Tree; namespace Sicentury.Core.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 } }