JryVideo.Selectors.WebImageSelector.WebImageSelectorWindow.StartSelectByImdbId C# (CSharp) Method

StartSelectByImdbId() public static method

public static StartSelectByImdbId ( Window parent, string imdbId ) : string
parent System.Windows.Window
imdbId string
return string
        public static string StartSelectByImdbId(Window parent, string imdbId)
        {
            var client = JryVideoCore.Current.GetTheTVDBClient();
            if (client == null)
            {
                parent.ShowJryVideoMessage("error", "TheTVDB init failed, try again.");
                return null;
            }
            var dlg = new WebImageSelectorWindow() { Owner = parent };
            dlg.ViewModel.BeginLoadPosterByImdbId(client, imdbId);
            return dlg.ShowDialog() == true ? dlg.ViewModel.SelectedUrl : null;
        }