mirror of
https://github.com/SabreTools/MPF.git
synced 2026-02-17 13:55:41 +00:00
21 lines
490 B
C#
21 lines
490 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.Name(); }
|
|
}
|
|
}
|
|
}
|