/// <summary> /// Creates the element and retrieves all information from the control /// </summary> /// <param name="control">GUIControl</param> public TextScrollUpElement(GUIControl control) : base(control) { _textScrollUp = control as GUITextScrollUpControl; if (_textScrollUp != null) { _font = GetFont(_textScrollUp.FontName); _brush = new SolidBrush(GetColor(_textScrollUp.TextColor)); _label = _textScrollUp.Property; } }
public MainPresenter(GUIFacadeControl facade, GUIImage[] stars, GUIImage bg_description, GUITextScrollUpControl text_description, GUIButtonControl button_view, GUILabelControl gamelabel_year, GUILabelControl gamelabel_genre, GUILabelControl gamelabel_company, GUILabelControl gamelabel_latestplay, GUILabelControl gamelabel_playcount) { this.facade = facade; this.stars = stars; this.bg_description = bg_description; this.text_description = text_description; this.button_view = button_view; this.gamelabel_year = gamelabel_year; this.gamelabel_genre = gamelabel_genre; this.gamelabel_company = gamelabel_company; this.gamelabel_latestplay = gamelabel_latestplay; this.gamelabel_playcount = gamelabel_playcount; }