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