using DICUI.Data; using DICUI.Utilities; namespace DICUI { /// /// Represents a single item in the MediaType combo box /// 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(); } } } }