mirror of
https://github.com/SabreTools/MPF.git
synced 2026-07-02 17:24:48 +00:00
31 lines
643 B
C#
31 lines
643 B
C#
using DICUI.Utilities;
|
|
using DICUI.Web;
|
|
|
|
namespace DICUI
|
|
{
|
|
/// <summary>
|
|
/// Represents a single item in the Region combo box
|
|
/// </summary>
|
|
public class RegionComboBoxItem
|
|
{
|
|
private object data;
|
|
|
|
public RegionComboBoxItem(Region? region) => data = region;
|
|
|
|
public static implicit operator Region? (RegionComboBoxItem item) => item.data as Region?;
|
|
|
|
public string Name
|
|
{
|
|
get
|
|
{
|
|
return (data as Region?).LongName();
|
|
}
|
|
}
|
|
|
|
public Region? Value
|
|
{
|
|
get { return data as Region?; }
|
|
}
|
|
}
|
|
}
|