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
21 lines
494 B
C#
21 lines
494 B
C#
using DICUI.Data;
|
|
using DICUI.Utilities;
|
|
|
|
namespace DICUI
|
|
{
|
|
/// <summary>
|
|
/// Represents a single item in the MediaType combo box
|
|
/// </summary>
|
|
public class MediaTypeComboBoxItem
|
|
{
|
|
private MediaType? data;
|
|
|
|
public MediaTypeComboBoxItem(MediaType? mediaType) => data = mediaType;
|
|
|
|
public static implicit operator MediaType? (MediaTypeComboBoxItem item) => item.data;
|
|
|
|
public string Name { get { return data.LongName(); }
|
|
}
|
|
}
|
|
}
|