using System.ComponentModel;
using System.Windows.Forms;
namespace Dongke.WinForm.Controls
{
///
/// 为 GrpCollapsible 控件的 CollapseLinking 事件提供数据
///
public class GroupBoxCollapseLinkingEventArgs : GroupBoxCollapsingEventArgs
{
#region 成员变量
///
/// GroupBox折叠或展开时联动的控件
///
private Control _linked = null;
#endregion
#region 构造函数
///
/// CollapseLinking 事件参数
///
/// 联动的控件
/// 折叠或展开状态
public GroupBoxCollapseLinkingEventArgs(Control linked, bool collapsing)
: base(collapsing)
{
this._linked = linked;
}
///
/// CollapseLinking 事件参数
///
/// 联动的控件
/// 折叠或展开状态
/// 指示是否应取消事件的值
public GroupBoxCollapseLinkingEventArgs(Control linked, bool collapsing, bool cancel)
: base(collapsing, cancel)
{
this._linked = linked;
}
#endregion
#region 属性
///
/// 获取GroupBox折叠或展开时联动的控件。
///
public Control Linked
{
get
{
return this._linked;
}
internal set
{
this._linked = value;
}
}
#endregion
}
}