Example #1
0
        private void btnComicVineNew_Click(object sender, EventArgs e)
        {
            _cvVolumeSearchResponse = null;
            txtComicSeachText.Text  = null;


            _cvVolumeSearchResponse = ComicVineManager.GetNewThisWeek();
            BindComicVineResults();
        }
Example #2
0
        private void btnSearchComicVine_Click(object sender, EventArgs e)
        {
            _cvVolumeSearchResponse = null;
            if (string.IsNullOrWhiteSpace(txtComicSeachText.Text))
            {
                return;
            }

            _cvVolumeSearchResponse = ComicVineManager.GetVolumeSearchResults(txtComicSeachText.Text);
            BindComicVineResults();
        }
Example #3
0
        private void ListIssues_SelectedIndexChanged(object sender, EventArgs e)
        {
            lstIssues.Refresh();

            ClearSearchResults();
            if (lstIssues.SelectedIndex < 0)
            {
                return;
            }
            string issueId = ((Issue)lstIssues.SelectedItem).IssueID;

            lblComicName.Text  = _currentComic.Comics[0].ComicName;
            lblComicName.Text += @"  (" + _currentVolume.Volume.StartYear + @") " + @" Issue #" + ((Issue)lstIssues.SelectedItem).Issue_Number;
            CvIssueResponse issue = ComicVineManager.GetIssue(issueId);

            webDetails.DocumentText = "0";
            if (webDetails.Document != null)
            {
                webDetails.Document.OpenNew(true);
                webDetails.Document.Write(issue.Issue.Description);
            }

            webDetails.Refresh();
            if (issue.Issue.Image != null)
            {
                if (!string.IsNullOrEmpty(issue.Issue.Image.LargeUrl))
                {
                    imgDetail.Image = ImageCacheManager.GetImage(issue.Issue.Image.LargeUrl);
                }
                else
                {
                    imgDetail.Image = ImageCacheManager.GetImage(_currentComic.Comics[0].ComicImageURL);
                }
            }



            SetStatus("Ready ...");
        }
Example #4
0
        private void BindComic(CvVolume volume)
        {
            if (volume.Image?.LargeUrl == null)
            {
                volume = ComicVineManager.GetVolume(volume.Id.ToString()).Volume;
            }

            imgDetail.Image   = ImageCacheManager.GetImage(volume.Image.LargeUrl);
            lblComicName.Text = volume.Name;
            CvVolumeResponse v = new CvVolumeResponse();

            v.Volume           = volume;
            _currentVolume     = v;
            lblComicName.Text += @"  (" + _currentVolume.Volume.StartYear + @")";

            webDetails.DocumentText = "0";
            if (webDetails.Document != null)
            {
                webDetails.Document.OpenNew(true);
                webDetails.Document.Write(_currentVolume.Volume.Description);
            }

            webDetails.Refresh();

            if (_currentVolume.Volume.Publisher == null)
            {
                if (_currentVolume.Volume.Publisher != null)
                {
                    var pub = ComicVineManager.GetPublisher(_currentVolume.Volume.Publisher.Id);
                    imgPublisher.Image = ImageCacheManager.GetImage(pub.Publisher.Image.IconUrl);
                }
            }
            else
            {
                imgPublisher.Image = null;
            }
        }
Example #5
0
        private void BindComic(Title title)
        {
            _currentComic = MylarManager.GetComic(title.ComicID);

            imgDetail.Image = ImageCacheManager.GetImage(_currentComic.Comics[0].ComicImageURL ?? _currentVolume.Volume.Image.LargeUrl);

            lblComicName.Text = _currentComic.Comics[0].ComicName;

            _currentVolume     = ComicVineManager.GetVolume(title.ComicID);
            lblComicName.Text += @"  (" + _currentVolume.Volume.StartYear + @")";

            webDetails.DocumentText = "0";
            if (webDetails.Document != null)
            {
                webDetails.Document.OpenNew(true);
                webDetails.Document.Write(_currentVolume.Volume.Description);
            }

            webDetails.Refresh();

            var pub = ComicVineManager.GetPublisher(_currentVolume.Volume.Publisher.Id);

            imgPublisher.Image = ImageCacheManager.GetImage(pub.Publisher.Image.IconUrl);
        }