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