123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- using System;
- using System.ComponentModel;
- using System.Drawing;
- using XPTable.Themes;
- namespace XPTable.Renderers
- {
-
-
-
- public class DropDownRendererData
- {
- #region Class Data
-
-
-
- private ComboBoxStates buttonState;
-
-
-
-
- private int clickX;
-
-
-
- private int clickY;
- #endregion
- #region Constructor
-
-
-
-
- public DropDownRendererData()
- {
- this.buttonState = ComboBoxStates.Normal;
- this.clickX = -1;
- this.clickY = -1;
- }
- #endregion
- #region Properties
-
-
-
- public ComboBoxStates ButtonState
- {
- get
- {
- return this.buttonState;
- }
- set
- {
- if (!Enum.IsDefined(typeof(ComboBoxStates), value))
- {
- throw new InvalidEnumArgumentException("value", (int) value, typeof(ComboBoxStates));
- }
-
- this.buttonState = value;
- }
- }
-
-
-
-
- public Point ClickPoint
- {
- get
- {
- return new Point(this.clickX, this.clickY);
- }
- set
- {
- this.clickX = value.X;
- this.clickY = value.Y;
- }
- }
- #endregion
- }
- }
|