Esempio n. 1
0
 public string ShowSelectPosterWindow(string id)
 {
     using (var vw = new SelectPosterView(id))
     {
         return(vw.ShowDialog() == DialogResult.OK ? vw.SelectedPath : null);
     }
 }
Esempio n. 2
0
        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;
            }
        }