Files
mirror-processhacker/trunk/TreeViewAdv/Tree/Input/InputWithControl.cs
T
wj32 3a5a6818ee add TreeViewAdv code
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@339 21ef857c-d57f-4fe0-8362-d861dc6d29cd
2008-12-19 23:19:42 +00:00

31 lines
653 B
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace Aga.Controls.Tree
{
internal class InputWithControl: NormalInputState
{
public InputWithControl(TreeViewAdv tree): base(tree)
{
}
protected override void DoMouseOperation(TreeNodeAdvMouseEventArgs args)
{
if (Tree.SelectionMode == TreeSelectionMode.Single)
{
base.DoMouseOperation(args);
}
else if (CanSelect(args.Node))
{
args.Node.IsSelected = !args.Node.IsSelected;
Tree.SelectionStart = args.Node;
}
}
protected override void MouseDownAtEmptySpace(TreeNodeAdvMouseEventArgs args)
{
}
}
}