first commit
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
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)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user