// Cinema Suite 2014
using System;
using System.Collections.Generic;
namespace CinemaDirector
{
///
/// The Attribute for track groups.
///
[AttributeUsage(AttributeTargets.Class)]
public class TrackGroupAttribute : Attribute
{
// The user friendly name for this Track Group.
private string label;
// The list of Track Genres that this Track Group allows.
private List trackGenres = new List();
///
/// Attribute for Track Groups
///
/// The name of this track group.
/// The Track Genres that this Track Group is allowed to contain.
public TrackGroupAttribute(string label, params TimelineTrackGenre[] TrackGenres)
{
this.label = label;
this.trackGenres.AddRange(TrackGenres);
}
///
/// The label of this track group.
///
public string Label
{
get
{
return label;
}
}
///
/// The Track Genres that this Track Group can contain.
///
public TimelineTrackGenre[] AllowedTrackGenres
{
get
{
return trackGenres.ToArray();
}
}
}
}