mirror of
https://github.com/SabreTools/MPF.git
synced 2026-02-17 13:55:41 +00:00
* Add (currently) hidden setting for disc info * Show setting in Options menu * Fix new window * New place for combo box items * Fixes to outputs * Add category, fix a few things * Actually use the custom converter * Allow tabs in ringcode
31 lines
644 B
C#
31 lines
644 B
C#
using DICUI.Data;
|
|
using DICUI.Utilities;
|
|
|
|
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?; }
|
|
}
|
|
}
|
|
}
|