/// <summary>
 /// Creates the element and retrieves all information from the control
 /// </summary>
 /// <param name="control">GUIControl</param>
 public ListElement(GUIControl control)
     : base(control)
 {
     _list = control as GUIListControl;
     if (_list != null)
     {
         _cursorX        = _list.CursorX;
         _offset         = _list.Offset;
         _listButtons    = new List <ListButtonElement>();
         _labelControls1 = new List <ListLabelElement>();
         _labelControls2 = new List <ListLabelElement>();
         _labelControls3 = new List <ListLabelElement>();
         _cachedBitmaps  = new Dictionary <String, Bitmap>();
         AllocButtons(_list.SpinX, _list.SpinY);
         initializeLabels();
         _verticalScrollBarElement = new VerticalScrollBarElement(_list.Scrollbar);
         _focus = _list.IsFocused;
     }
 }
Beispiel #2
0
 /// <summary>
 /// Creates the element and retrieves all information from the control
 /// </summary>
 /// <param name="control">GUIControl</param>
 public ListElement(GUIControl control)
     : base(control)
 {
     _list = control as GUIListControl;
       if (_list != null)
       {
     _cursorX = _list.CursorX;
     _offset = _list.Offset;
     _listButtons = new List<ListButtonElement>();
     _labelControls1 = new List<ListLabelElement>();
     _labelControls2 = new List<ListLabelElement>();
     _labelControls3 = new List<ListLabelElement>();
     _cachedBitmaps = new Dictionary<String, Bitmap>();
     AllocButtons(_list.SpinX, _list.SpinY);
     initializeLabels();
     _verticalScrollBarElement = new VerticalScrollBarElement(_list.Scrollbar);
     _focus = _list.IsFocused;
       }
 }