예제 #1
0
        private void NewMetaHeader_Load(object sender, EventArgs e)
        {
            lvSubtitles.Items.Clear();

            tvsc = new TVSpecificConfig(mdm);
            msc  = new MovieSpecificConfig(mdm);

            //set component
            tbTitle.Text           = mdm.title;
            tbReleaseDate.Text     = mdm.releaseDate;
            tbDirector.Text        = mdm.director;
            tbWriter.Text          = mdm.writer;
            tbCast.Text            = mdm.cast;
            tbDescription.Text     = mdm.description;
            tbLongDescription.Text = mdm.longDescription;
            cbMediaType.Text       = mdm.mediaType;
            cbContentRating.Text   = mdm.contentRate;
            cbHD.Text           = mdm.hd;
            tbChaptersFile.Text = mdm.chaptersFilePath;

            foreach (KeyValuePair <String, String> pair in mdm.subtitles)
            {
                lvSubtitles.Items.Add(new ListViewItem(new String[] { pair.Key, pair.Value }));
            }

            //picture box
            if (mdm.posterPath != "" && File.Exists(mdm.posterPath))
            {
                pbPoster.ImageLocation = mdm.posterPath;
            }
        }
예제 #2
0
        private void cbMediaType_SelectedValueChanged(object sender, EventArgs e)
        {
            if (cbMediaType.Text == "电视剧")
            {
                if (tvsc == null)
                {
                    tvsc = new TVSpecificConfig();
                }

                pMediaSpecific.Controls.Clear();
                pMediaSpecific.Controls.Add(tvsc);
            }

            else if (cbMediaType.Text == "电影")
            {
                if (msc == null)
                {
                    msc = new MovieSpecificConfig();
                }

                pMediaSpecific.Controls.Clear();
                pMediaSpecific.Controls.Add(msc);
            }

            else
            {
                pMediaSpecific.Controls.Clear();
            }
        }
예제 #3
0
        private void NewMetaHeader_Load(object sender, EventArgs e)
        {
            lvSubtitles.Items.Clear();

            tvsc = new TVSpecificConfig(mdm);
            msc = new MovieSpecificConfig(mdm);

            //set component
            tbTitle.Text = mdm.title;
            tbReleaseDate.Text = mdm.releaseDate;
            tbDirector.Text = mdm.director;
            tbWriter.Text = mdm.writer;
            tbCast.Text = mdm.cast;
            tbDescription.Text = mdm.description;
            tbLongDescription.Text = mdm.longDescription;
            cbMediaType.Text = mdm.mediaType;
            cbContentRating.Text = mdm.contentRate;
            cbHD.Text = mdm.hd;
            tbChaptersFile.Text = mdm.chaptersFilePath;

            foreach (KeyValuePair<String, String> pair in mdm.subtitles)
            {
                lvSubtitles.Items.Add(new ListViewItem(new String[] { pair.Key, pair.Value }));
            }

            //picture box
            if (mdm.posterPath != "" && File.Exists(mdm.posterPath))
            {
                pbPoster.ImageLocation = mdm.posterPath;
            }
        }
예제 #4
0
        private void cbMediaType_SelectedValueChanged(object sender, EventArgs e)
        {
            if (cbMediaType.Text == "电视剧")
            {
                if (tvsc == null)
                {
                    tvsc = new TVSpecificConfig();
                }

                pMediaSpecific.Controls.Clear();
                pMediaSpecific.Controls.Add(tvsc);
            }

            else if (cbMediaType.Text == "电影")
            {
                if (msc == null)
                {
                    msc = new MovieSpecificConfig();
                }

                pMediaSpecific.Controls.Clear();
                pMediaSpecific.Controls.Add(msc);
            }

            else
            {
                pMediaSpecific.Controls.Clear();
            }
        }