You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

79 lines
2.0 KiB
C#

1 month ago
// ***********************************************************************
// Assembly : Construction
// Author : flythink
// Created : 06-22-2020
//
// Last Modified By : flythink
// Last Modified On : 09-01-2020
// ***********************************************************************
// <copyright file="ComboBoxItem.cs" company="jindongfang">
// Copyright (c) jindongfang. All rights reserved.
// </copyright>
// <summary></summary>
// ***********************************************************************
namespace WellWorkDataUI.CustomControls
{
/// <summary>
/// Class ComboBoxItem.
/// </summary>
public class ComboBoxItem
{
private string text = null;
private object value = null;
/// <summary>
/// Initializes a new instance of the <see cref="ComboBoxItem" /> class.
/// </summary>
/// <param name="value">The value.</param>
/// <param name="text">The text.</param>
public ComboBoxItem(string value, string text)
{
this.value = value;
this.text = text;
}
/// <summary>
/// Gets or sets the text.
/// </summary>
/// <value>The text.</value>
public string Text
{
get
{
return this.text;
}
set
{
this.text = value;
}
}
/// <summary>
/// Gets or sets the value.
/// </summary>
/// <value>The value.</value>
public object Value
{
get
{
return this.value;
}
set
{
this.value = value;
}
}
/// <summary>
/// Returns a <see cref="string" /> that represents this instance.
/// </summary>
/// <returns>A <see cref="string" /> that represents this instance.</returns>
public override string ToString()
{
return this.text;
}
}
}