Inheritance: Caliburn.Micro.Screen
Beispiel #1
0
        public void AddShow()
        {
            var win = new AddShowViewModel(infoProvider, shows.ToList());

            if (wm.ShowDialog(win) != true)
            {
                return;
            }
            if (win.Show == null)
            {
                return;
            }

            var show = win.Show;

            if (show.Seasons.Count > 0)
            {
                show.SelectedSeason = show.Seasons[show.Seasons.Count - 1];
            }

            shows.Add(show);
            SelectedShow = show;

            SaveShows();

            ImageHelper.LoadDefaultImages(show);
            ImageHelper.GetShowImage(show);
            ImageHelper.GetEpisodeImages(show);

            UpdateTimeline();
            UpdateBacklog();
        }
Beispiel #2
0
        public void AddShow()
        {
            var win = new AddShowViewModel(infoProvider, shows.ToList());
            if (wm.ShowDialog(win) != true) return;
            if (win.Show == null) return;

            Show show = win.Show;
            if (show.Seasons.Count > 0)
            {
                show.SelectedSeason = show.Seasons[show.Seasons.Count - 1];
            }

            shows.Add(show);
            SelectedShow = show;

            SaveShows();

            ImageHelper.LoadDefaultImages(show);
            ImageHelper.GetShowImage(show);
            ImageHelper.GetEpisodeImages(show);

            UpdateTimeline();
            UpdateBacklog();
        }