public override void Initialize() { base.Initialize(); Subscribe(); _clientManager = new RemoteClients(this); _locationTimer = new Timer(100); _locationTimer.Elapsed += _locationTimer_Elapsed; Task.Factory.StartNew(Server); }
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); }
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); }