External/Aga.Controls/Tree/DrawContext.cs
author moel.mich
Tue, 30 Dec 2014 22:47:39 +0000
changeset 431 0e46e3ca812a
permissions -rw-r--r--
Fixed the following issue (present only on 32-bit systems):

Version: 0.7.0.0

System.NullReferenceException: Object reference not set to an instance of an object.
at OpenHardwareMonitor.GUI.MainForm.timer_Tick(Object sender, EventArgs e)
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Common Language Runtime: 4.0.30319.18444
Operating System: Microsoft Windows NT 6.1.7601 Service Pack 1
Process Type: 32-Bit
     1 using System;
     2 using System.Collections.Generic;
     3 using System.Text;
     4 using System.Drawing;
     5 using Aga.Controls.Tree.NodeControls;
     6 
     7 namespace Aga.Controls.Tree
     8 {
     9 	public struct DrawContext
    10 	{
    11 		private Graphics _graphics;
    12 		public Graphics Graphics
    13 		{
    14 			get { return _graphics; }
    15 			set { _graphics = value; }
    16 		}
    17 
    18 		private Rectangle _bounds;
    19 		public Rectangle Bounds
    20 		{
    21 			get { return _bounds; }
    22 			set { _bounds = value; }
    23 		}
    24 
    25 		private Font _font;
    26 		public Font Font
    27 		{
    28 			get { return _font; }
    29 			set { _font = value; }
    30 		}
    31 
    32 		private DrawSelectionMode _drawSelection;
    33 		public DrawSelectionMode DrawSelection
    34 		{
    35 			get { return _drawSelection; }
    36 			set { _drawSelection = value; }
    37 		}
    38 
    39 		private bool _drawFocus;
    40 		public bool DrawFocus
    41 		{
    42 			get { return _drawFocus; }
    43 			set { _drawFocus = value; }
    44 		}
    45 
    46 		private NodeControl _currentEditorOwner;
    47 		public NodeControl CurrentEditorOwner
    48 		{
    49 			get { return _currentEditorOwner; }
    50 			set { _currentEditorOwner = value; }
    51 		}
    52 
    53 		private bool _enabled;
    54 		public bool Enabled
    55 		{
    56 			get { return _enabled; }
    57 			set { _enabled = value; }
    58 		}
    59 	}
    60 }