private void ClearSelection() { if (_activeController == _musicController) { DeleteMusicButton.IsEnabled = false; AddToPlaylistButton.IsEnabled = false; PlayMusicButton.IsEnabled = false; NextMusicButton.IsEnabled = false; StopMusicButton.IsEnabled = false; PauseMusicButton.IsEnabled = false; VolumeSlider.IsEnabled = false; musicListBox.SelectedItem = null; playlistListBox.SelectedItem = null; _musicController.ClearSelected(); _newFile = null; } else if (_activeController == _movieController) { DeleteMovieButton.IsEnabled = false; PlayMovieButton.IsEnabled = false; movieListBox.SelectedItem = null; _movieController.ClearSelected(); _newFile = null; } }