External/Aga.Controls/Tree/NodeControls/DrawEventArgs.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.Drawing;
     5 
     6 namespace Aga.Controls.Tree.NodeControls
     7 {
     8 	public class DrawEventArgs : NodeEventArgs
     9 	{
    10 		private DrawContext _context;
    11 		public DrawContext Context
    12 		{
    13 			get { return _context; }
    14 		}
    15 
    16 		private Brush _textBrush;
    17 		[Obsolete("Use TextColor")]
    18 		public Brush TextBrush
    19 		{
    20 			get { return _textBrush; }
    21 			set { _textBrush = value; }
    22 		}
    23 
    24 		private Brush _backgroundBrush;
    25 		public Brush BackgroundBrush
    26 		{
    27             get { return _backgroundBrush; }
    28 			set { _backgroundBrush = value; }
    29 		}
    30 
    31 		private Font _font;
    32 		public Font Font
    33 		{
    34 			get { return _font; }
    35 			set { _font = value; }
    36 		}
    37 
    38 		private Color _textColor;
    39 		public Color TextColor
    40 		{
    41 			get { return _textColor; }
    42 			set { _textColor = value; }
    43 		}
    44 
    45 		private string _text;
    46 		public string Text
    47 		{
    48 			get { return _text; }
    49 			set { _text = value; }
    50 		}
    51 
    52 
    53 		private EditableControl _control;
    54 		public EditableControl Control
    55 		{
    56 			get { return _control; }
    57 		}
    58 
    59 		public DrawEventArgs(TreeNodeAdv node, EditableControl control, DrawContext context, string text)
    60 			: base(node)
    61 		{
    62 			_control = control;
    63 			_context = context;
    64 			_text = text;
    65 		}
    66 	}
    67 }