namespace CareFusion.ITSystemSimulator.Gui.Pages.Utils
{
    /// <summary>
    /// Class which represents an object can be used as item to a combo box
    /// </summary>
    public class ComboboxItem
    {
        #region Properties

        /// <summary>
        /// The item's display value.
        /// </summary>
        public string Text { get; set; }

        /// <summary>
        /// The item's backEnd value.
        /// </summary>
        public string Value { get; set; }

        #endregion

        #region Constructors

        public ComboboxItem()
        {

        }

        public ComboboxItem(string text, string value)
        {
            this.Text = text;
            this.Value = value;
        }

        #endregion

        #region Overriden methods

        public override string ToString()
        {
            return this.Text;
        }

        #endregion
    }
}