using DarkUI.Config;
using System;
using System.Drawing;

namespace DarkUI.Controls
{
    public class DarkListItem
    {
        #region Event Region

        public event EventHandler TextChanged;
        public event EventHandler SizeChanged;
        #endregion

        #region Field Region

        private string _text;
        private string _size;

        #endregion

        #region Property Region

        public string Text
        {
            get { return _text; }
            set
            {
                _text = value;

                if (TextChanged != null)
                    TextChanged(this, new EventArgs());
            }
        }
        public string Size
        {
            get { return _size; }
            set
            {
                _size = value;

                if (SizeChanged != null)
                    SizeChanged(this, new EventArgs());
            }
        }
        public Rectangle Area { get; set; }

        public Color TextColor { get; set; }

        public FontStyle FontStyle { get; set; }

        public Bitmap Icon { get; set; }

        public object Tag { get; set; }

        #endregion

        #region Constructor Region

        public DarkListItem()
        {
            TextColor = Colors.LightText;
            FontStyle = FontStyle.Regular;
        }

        public DarkListItem(string text)
            : this()
        {
            Text = text;
        }
        public DarkListItem(string text, string size)
            : this()
        {
            Text = text;
            Size = size;
        }
        #endregion
    }
}
