comboboxitem.cs

来自「飞信的收发使用csharp进行开发」· CS 代码 · 共 47 行

CS
47
字号
namespace Imps.Client.Pc.UIContactList.AddBuddy
{
    using System;

    internal class ComboBoxItem
    {
        private string _text;
        private object _value;

        public ComboBoxItem(string text, object value)
        {
            this._text = text;
            this._value = value;
        }

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

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

        public object Value
        {
            get
            {
                return this._value;
            }
            set
            {
                this._value = value;
            }
        }
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?