mirror of
https://github.com/SabreTools/MPF.git
synced 2026-02-16 21:37:13 +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
30 lines
669 B
C#
30 lines
669 B
C#
using DICUI.Data;
|
|
using DICUI.Utilities;
|
|
|
|
namespace DICUI
|
|
{
|
|
/// <summary>
|
|
/// Represents a single item in the Language combo box
|
|
/// </summary>
|
|
public class LanguageComboBoxItem
|
|
{
|
|
private object data;
|
|
|
|
public LanguageComboBoxItem(Language? region) => data = region;
|
|
|
|
public static implicit operator Language? (LanguageComboBoxItem item) => item.data as Language?;
|
|
|
|
public string Name
|
|
{
|
|
get { return (data as Language?).LongName(); }
|
|
}
|
|
|
|
public bool IsChecked { get; set; }
|
|
|
|
public Language? Value
|
|
{
|
|
get { return data as Language?; }
|
|
}
|
|
}
|
|
}
|