public string ShowSelectPosterWindow(string id) { using (var vw = new SelectPosterView(id)) { return(vw.ShowDialog() == DialogResult.OK ? vw.SelectedPath : null); } }
public void ShowSelectPosterWindow(int index) { var localEntry = Model.DataView[index]; using (var vw = new SelectPosterView(localEntry.TmdbId.ToString())) { if (vw.ShowDialog() != DialogResult.OK) { return; } localEntry.PosterPath = vw.SelectedPath; _lastSelectedIndex = -1; } }