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