public static string TypeToString(SmartPlaylistLimitType type) { switch (type) { case SmartPlaylistLimitType.Songs: return(SmartPlaylistDecoder.XmlLimitTypeSongs); case SmartPlaylistLimitType.GigaBytes: return(SmartPlaylistDecoder.XmlLimitTypeGigaBytes); case SmartPlaylistLimitType.MegaBytes: return(SmartPlaylistDecoder.XmlLimitTypeMegaBytes); case SmartPlaylistLimitType.Minutes: return(SmartPlaylistDecoder.XmlLimitTypeMinutes); default: return(SmartPlaylistDecoder.XmlLimitTypeSongs); } }
public SmartPlaylistTypeViewModel(SmartPlaylistLimitType type, string displayName) { this.type = type; this.displayName = displayName; }
public SmartPlaylistLimit(SmartPlaylistLimitType type, int value) { this.Type = type; this.Value = value; }
public SmartPlaylistLimitViewModel(SmartPlaylistLimitType type, int value) { this.type = type; this.value = value; }