Source/AdvTree/TreeCellCancelEventArgs.cs
(完整代码) 1KBusing System;
using System.Windows.Forms;
namespace DevComponents.AdvTree
{
/// <summary>
/// Provides data for AdvTree Cell events that can be canceled.
/// </summary>
public class TreeCellCancelEventArgs:AdvTreeCellEventArgs
{
/// <summary>
/// Default constructor for event data.
/// </summary>
/// <param name="action">Type of the action event is raised for.</param>
/// <param name="cell">Cell that event is raised for.</param>
public TreeCellCancelEventArgs(eTreeAction action, Cell cell):base(action,cell)
{
}
/// <summary>
/// Indicates that event action should be canceled.
/// </summary>
public bool Cancel=false;
}
/// <summary>
/// Provides data for AdvTree.BeforeCheck event.
/// </summary>
public class AdvTreeCellBeforeCheckEventArgs : TreeCellCancelEventArgs
{
public CheckState NewCheckState = CheckState.Indeterminate;
/// <summary>
/// Initializes a new instance of the AdvTreeCellBeforeCheckEventArgs class.
/// </summary>
/// <param name="newCheckState"></param>
public AdvTreeCellBeforeCheckEventArgs(eTreeAction action, Cell cell, CheckState newCheckState)
: base(action, cell)
{
NewCheckState = newCheckState;
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。