public void connectedToPlaylist(PlaylistUserControl _playlistUserControl) { if (_playlistUserControl != null) { _playlistUserControl.OnEnableServerTrackCommandsHandler += new PlaylistUserControl.EnableServerTrackCommandsHandler(enableServerTrackCommandsHandler); _playlistUserControl.OnServerConnectionChanged += new PlaylistUserControl.ServerConnectionChanged(serverConnectionChanged); this.checkPMSConnection(); } }
public void disconnectedFromPlaylist(PlaylistUserControl _playlistUserControl) { if (_playlistUserControl != null) { _playlistUserControl.OnEnableServerTrackCommandsHandler -= new PlaylistUserControl.EnableServerTrackCommandsHandler(enableServerTrackCommandsHandler); _playlistUserControl.OnServerConnectionChanged -= new PlaylistUserControl.ServerConnectionChanged(serverConnectionChanged); PMSServer = null; this.checkPMSConnection(); } }