Beispiel #1
0
 public override void Initialize()
 {
     base.Initialize();
     Subscribe();
     _clientManager          = new RemoteClients(this);
     _locationTimer          = new Timer(100);
     _locationTimer.Elapsed += _locationTimer_Elapsed;
     Task.Factory.StartNew(Server);
 }
Beispiel #2
0
 public override void Initialize()
 {
     base.Initialize();
     context = WindowsFormsSynchronizationContext.Current;
     PlayerControl.PlaybackCompleted      += m_PlayerControl_PlaybackCompleted;
     PlayerControl.PlayerStateChanged     += m_PlayerControl_PlayerStateChanged;
     PlayerControl.EnteringFullScreenMode += m_PlayerControl_EnteringFullScreenMode;
     PlayerControl.ExitingFullScreenMode  += m_PlayerControl_ExitingFullScreenMode;
     clientManager = new RemoteClients(this);
     Task.Factory.StartNew(Server);
 }
Beispiel #3
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);
        }