示例#1
0
 public string ShowSelectPosterWindow(string id)
 {
     using (var vw = new SelectPosterView(id))
     {
         return(vw.ShowDialog() == DialogResult.OK ? vw.SelectedPath : null);
     }
 }
        public SelectPosterPresenter(SelectPosterView view)
        {
            View  = view;
            Model = Program.AppKernel.Get <SelectPosterModel>(new ConstructorArgument("context", SynchronizationContext.Current));

            _tmdbWebRequest = Program.AppKernel.Get <ITmdbWebRequest>();
            _tmdb           = Program.AppKernel.Get <ITmdb>();
        }
示例#3
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;
            }
        }