public void FillControlsFromObject(CommonConfigData.ExternalPlayer externalPlayer, PlayableExternalConfigurator uiConfigurator, bool refreshMediaTypes, bool refreshVideoFormats) { lstPlayerType.SelectedItem = externalPlayer.ExternalPlayerName; txtArguments.Text = externalPlayer.Args; chkMinimizeMce.IsChecked = externalPlayer.MinimizeMCE; chkShowSplashScreen.IsChecked = externalPlayer.ShowSplashScreen; //chkHideTaskbar.IsChecked = externalPlayer.HideTaskbar; chkSupportsMultiFileCommand.IsChecked = externalPlayer.SupportsMultiFileCommandArguments; chkSupportsPLS.IsChecked = externalPlayer.SupportsPlaylists; if (refreshMediaTypes) { EnumWrapperList <MediaType> mediaTypes = lstMediaTypes.ItemsSource as EnumWrapperList <MediaType>; mediaTypes.SetValues(externalPlayer.MediaTypes); SetListDataSource(lstMediaTypes, mediaTypes); } if (refreshVideoFormats) { EnumWrapperList <VideoFormat> videoFormats = lstVideoFormats.ItemsSource as EnumWrapperList <VideoFormat>; videoFormats.SetValues(externalPlayer.VideoFormats); SetListDataSource(lstVideoFormats, videoFormats); } SetControlVisibility(uiConfigurator); SetTips(uiConfigurator); if (string.IsNullOrEmpty(externalPlayer.Command)) { AutoFillPaths(uiConfigurator); } else { txtCommand.Text = externalPlayer.Command; } }