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