1 Star 0 Fork 4

wsp/TreeGridView_1

forked from 明日边陲/TreeGridView 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
TreeGridEvents.cs 2.51 KB
一键复制 编辑 原始数据 按行查看 历史
//---------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//THIS CODE AND INFORMATION ARE PROVIDED AS IS WITHOUT WARRANTY OF ANY
//KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
//IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
//PARTICULAR PURPOSE.
//---------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Text;
namespace AdvancedDataGridView
{
public class TreeGridNodeEventBase : EventArgs
{
private TreeGridNode _node;
public TreeGridNodeEventBase(TreeGridNode node)
{
this._node = node;
}
public TreeGridNode Node
{
get { return _node; }
}
}
public class CollapsingEventArgs : System.ComponentModel.CancelEventArgs
{
private TreeGridNode _node;
private CollapsingEventArgs() { }
public CollapsingEventArgs(TreeGridNode node)
: base()
{
this._node = node;
}
public TreeGridNode Node
{
get { return _node; }
}
}
public class CollapsedEventArgs : TreeGridNodeEventBase
{
public CollapsedEventArgs(TreeGridNode node)
: base(node)
{
}
}
public class ExpandingEventArgs:System.ComponentModel.CancelEventArgs
{
private TreeGridNode _node;
private ExpandingEventArgs() { }
public ExpandingEventArgs(TreeGridNode node):base()
{
this._node = node;
}
public TreeGridNode Node
{
get { return _node; }
}
}
public class ExpandedEventArgs : TreeGridNodeEventBase
{
public ExpandedEventArgs(TreeGridNode node):base(node)
{
}
}
public class CheckedEventArgs : TreeGridNodeEventBase
{
private bool isChangedByProgram;
public CheckedEventArgs(TreeGridNode node)
: base(node)
{
}
public CheckedEventArgs(TreeGridNode node, bool isChangedByProgram)
: this(node)
{
this.isChangedByProgram = isChangedByProgram;
}
public bool IsChangedByProgram
{
get
{
return this.isChangedByProgram;
}
}
}
public delegate void ExpandingEventHandler(object sender, ExpandingEventArgs e);
public delegate void ExpandedEventHandler(object sender, ExpandedEventArgs e);
public delegate void CollapsingEventHandler(object sender, CollapsingEventArgs e);
public delegate void CollapsedEventHandler(object sender, CollapsedEventArgs e);
public delegate void CheckedEventHandler(object sender, CheckedEventArgs e);
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/laowangm_m/TreeGridView_1.git
git@gitee.com:laowangm_m/TreeGridView_1.git
laowangm_m
TreeGridView_1
TreeGridView_1
master

搜索帮助