private void btnMoreInfo_Click(object sender, EventArgs e)
        {
            if (historyList.SelectedItems.Count != 1)
            {
                MessageBox.Show(Strings.ERROR_INFO_HIS, Strings.WARN, MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
            else
            {
                ListViewItem    item             = historyList.SelectedItems[0];
                LongDescription lDescriptionForm = new LongDescription();
                string          year             = Utils.YearFromFilmName(item.Text);

                dynamic result    = Utils.GetFilmInfo(ChType.MOVIE, item.Text.Replace(year, ""), year, "es");;
                JObject filmMatch = null;
                if (result["results"].Count > 0)
                {
                    filmMatch = result["results"][0];
                    lDescriptionForm.FillMovieData(filmMatch, ChType.MOVIE);
                    lDescriptionForm.ShowDialog();
                }
                else
                {
                    MessageBox.Show(Strings.NOT_FOUND, Strings.WARN, MessageBoxButtons.OK, MessageBoxIcon.Warning);
                }
            }
        }
Пример #2
0
 private void logoEPG_Click(object sender, EventArgs e)
 {
     if (currentPrg != null)
     {
         LongDescription lDescriptionForm = new LongDescription();
         lDescriptionForm.SetData(currentPrg);
         lDescriptionForm.ShowDialog();
     }
     else
     {
         if (chnl != null && (currentChType == ChType.MOVIE || currentChType == ChType.SHOW))
         {
             if (filmInfo != null)
             {
                 LongDescription lDescriptionForm = new LongDescription();
                 lDescriptionForm.FillMovieData();
                 lDescriptionForm.ShowDialog();
             }
         }
     }
 }