public SelectionInfo(SelectionInfoType type) { if (type != SelectionInfoType.None) { throw new ArgumentException(); } this.Type = type; }
public SelectionInfo(SelectionInfoType type, string id) { if (type == SelectionInfoType.None) { throw new ArgumentException(); } else if (type == SelectionInfoType.Artist) { this.Type = type; this.ArtistName = id; } else if (type == SelectionInfoType.Release) { this.Type = type; this.ReleaseId = id; } }