External/Aga.Controls/Tree/TreeNodeAdvMouseEventArgs.cs
author moel.mich
Sun, 23 Sep 2012 18:37:43 +0000
changeset 380 573f1fff48b2
permissions -rw-r--r--
Fixed Issue 387. The new implementation does not try to start a ring 0 driver that already exists, but could not be opened. It tries to delete the driver and install it new. The driver is now stored temporarily in the application folder. The driver is not correctly removed on system shutdown.
     1 using System;
     2 using System.Collections.Generic;
     3 using System.Text;
     4 using System.Windows.Forms;
     5 using System.Drawing;
     6 using Aga.Controls.Tree.NodeControls;
     7 
     8 namespace Aga.Controls.Tree
     9 {
    10 	public class TreeNodeAdvMouseEventArgs : MouseEventArgs
    11 	{
    12 		private TreeNodeAdv _node;
    13 		public TreeNodeAdv Node
    14 		{
    15 			get { return _node; }
    16 			internal set { _node = value; }
    17 		}
    18 
    19 		private NodeControl _control;
    20 		public NodeControl Control
    21 		{
    22 			get { return _control; }
    23 			internal set { _control = value; }
    24 		}
    25 
    26 		private Point _viewLocation;
    27 		public Point ViewLocation
    28 		{
    29 			get { return _viewLocation; }
    30 			internal set { _viewLocation = value; }
    31 		}
    32 
    33 		private Keys _modifierKeys;
    34 		public Keys ModifierKeys
    35 		{
    36 			get { return _modifierKeys; }
    37 			internal set { _modifierKeys = value; }
    38 		}
    39 
    40 		private bool _handled;
    41 		public bool Handled
    42 		{
    43 			get { return _handled; }
    44 			set { _handled = value; }
    45 		}
    46 
    47 		private Rectangle _controlBounds;
    48 		public Rectangle ControlBounds
    49 		{
    50 			get { return _controlBounds; }
    51 			internal set { _controlBounds = value; }
    52 		}
    53 
    54 		public TreeNodeAdvMouseEventArgs(MouseEventArgs args)
    55 			: base(args.Button, args.Clicks, args.X, args.Y, args.Delta)
    56 		{
    57 		}
    58 	}
    59 }