Exemplo n.º 1
0
        internal showClass chooseSeries(Episode ep, List <showClass> shows)
        {
            if (shows.Count == 0)
            {
                return(null);
            }
            if (shows.Count == 1)
            {
                return(shows[0]);
            }
            SelectShow showDlg = new SelectShow();

            showDlg.Text = String.Format("Select series for {0}", ep.series);
            showDlg.setEpisodeData(ep);
            showDlg.addShows(shows);

            if (showDlg.ShowDialog() == DialogResult.OK)
            {
                return(showDlg.selectedShow);
            }
            else
            {
                return(null);
            }
        }
Exemplo n.º 2
0
        internal showClass chooseSeries(Episode ep, List<showClass> shows)
        {
            if (shows.Count == 0) return null;
            if (shows.Count == 1) {
                return shows[0];
            }
            SelectShow showDlg = new SelectShow();

            showDlg.Text = String.Format("Select series for {0}", ep.series);
            showDlg.setEpisodeData(ep);
            showDlg.addShows(shows);

            if (showDlg.ShowDialog() == DialogResult.OK) {
                return showDlg.selectedShow;
            }
            else {
                return null;
            }
        }