/// <summary> /// Create a new event vased on the given playlist /// </summary> public PlaylistChangedEventArgs(Playlist NewPlaylist) { this.NewPlaylist = NewPlaylist; }
/// <summary> /// Create a new blank player control. /// </summary> public Player() { CurrentPlaylist = new Playlist(); Initialise(); AddCloseTriggers(); }
/// <summary> /// Create a new player, preloaded with the given playlist /// </summary> /// <param name="PlayList">Playlist as either an XML string or a URL to an XML asset.</param> public Player(string PlayList) { CurrentPlaylist = new Playlist(); CurrentPlaylist.PlaylistLoaded += CurrentPlaylist_PlaylistChanged; CurrentPlaylist.ReadPlaylist(PlayList); }