External/Aga.Controls/Tree/NodeControls/DrawEventArgs.cs
author moel.mich
Mon, 02 Jul 2012 21:14:40 +0000
changeset 357 fb8dc26f65a4
permissions -rw-r--r--
Added mainboard specific configurations for the following Gigabyte mainboards: EX58-UD3R, G41M-Combo, G41MT-S2, G41MT-S2P, GA-MA770T-UD3P, GA-MA785GM-US2H, GA-MA78LM-S2H, GA-MA790X-UD3P, H55-USB3, H55N-USB3, H61M-DS2 REV 1.2, H61M-USB3-B3 REV 2.0, H67A-USB3-B3, P55A-UD3, P67A-UD3-B3, P67A-UD3R-B3, Z68A-D3H-B3, Z68AP-D3, Z68X-UD3H-B3.
     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 }