Exemplo n.º 1
0
        public override void Initialize()
        {
            base.Initialize();
            Subscribe();
            _locationTimer          = new Timer(100);
            _locationTimer.Elapsed += _locationTimer_Elapsed;
            _clientManager          = new RemoteClients(this);
            var playlist = PlayerControl.PlayerExtensions.FirstOrDefault(t => t.Descriptor.Guid == _playlistGuid);

            if (playlist != null)
            {
                _playlistInstance = playlist as Playlist.Playlist;
                if (_playlistInstance != null)
                {
                    _playlistInstance.GetPlaylistForm.VisibleChanged  += GetPlaylistForm_VisibleChanged;
                    _playlistInstance.GetPlaylistForm.PlaylistChanged += GetPlaylistForm_PlaylistChanged;
                }
            }

            Task.Factory.StartNew(Server);
        }
Exemplo n.º 2
0
 public void RemoveFile(int index)
 {
     Playlist.RemoveAt(index);
     PopulatePlaylist();
 }
Exemplo n.º 3
0
 public void ClearPlaylist()
 {
     Playlist.Clear();
     currentPlayIndex = -1;
 }