External/Aga.Controls/Tree/TreeNodeAdvMouseEventArgs.cs
author StephaneLenclud
Sun, 03 Feb 2013 18:01:50 +0100
branchMiniDisplay
changeset 433 090259cfd699
permissions -rw-r--r--
Adding SoundGraphDisplay and SensorFrontView classes.
They were respectively based on SystemTray and SensorNotifyIcon.
SoundGraphDisplay is now able to load iMONDisplay.dll providing it lives on your PATH.
Adding option to sensor context menu for adding it into FrontView.
     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 }