Beispiel #1
0
        private void Render()
        {
            lblTitle.Text = MainForm.GetInstance().GetFilmsList().GetFilmDisplayedName(film);
            lblTitle.Left = (int)((Size.Width - lblTitle.Size.Width) / 2.0);
            pbPoster.Top  = lblTitle.Bottom + 10;
            if (pbPoster.Image != null && pbRating.Image != null)
            {
                pbPoster.ClientSize = new Size(400, (int)(pbPoster.Image.Height / (double)pbPoster.Image.Width * 400.0));
                pbPoster.SizeMode   = PictureBoxSizeMode.StretchImage;
                pbRating.Top        = pbPoster.Bottom + 10;
            }
            lblLink.Top         = pbRating.Bottom + 10;
            lblCountry.Text     = film.country; label1.Top = lblTitle.Bottom + 10; lblCountry.Top = lblTitle.Bottom + 10;
            lblGenre.Text       = film.genre; label2.Top = lblCountry.Bottom; lblGenre.Top = lblCountry.Bottom;
            lblDirector.Text    = film.director; label3.Top = lblGenre.Bottom; lblDirector.Top = lblGenre.Bottom;
            lblActors.Text      = film.actors; label4.Top = lblDirector.Bottom; lblActors.Top = lblDirector.Bottom;
            lblDescription.Text = film.description; label5.Top = lblActors.Bottom; lblDescription.Top = lblActors.Bottom;
            lblWorldDate.Text   = film.worldDate; label6.Top = lblDescription.Bottom; lblWorldDate.Top = lblDescription.Bottom;
            lblRussianDate.Text = film.russianDate; label7.Top = lblWorldDate.Bottom; lblRussianDate.Top = lblWorldDate.Bottom;
            lblDiscDate.Text    = film.discDate; label8.Top = lblRussianDate.Bottom; lblDiscDate.Top = lblRussianDate.Bottom;
            lblDuration.Text    = film.duration; label9.Top = lblDiscDate.Bottom; lblDuration.Top = lblDiscDate.Bottom;
            lblQuality.Text     = $"{film.qualityTitle} {film.qualityPixel}"; label10.Top = lblDuration.Bottom; lblQuality.Top = lblDuration.Bottom;
            lblTranslate.Text   = $"{film.translateTitle} ({film.translateComment})"; label11.Top = lblQuality.Bottom; lblTranslate.Top = lblQuality.Bottom;
            lblVideo.Text       = $"{film.videoCodec}, {film.originalWidth}x{film.originalHeight}, {film.videoKbps} Kbps, {film.fps} fps";
            label12.Top         = lblTranslate.Bottom; lblVideo.Top = lblTranslate.Bottom;
            lblAudio.Text       = $"{film.audioCodec}, {film.channels} ch, {film.audioKbps} Kbps";
            label13.Top         = lblVideo.Bottom; lblAudio.Top = lblVideo.Bottom;
            lblSize.Text        = RipService.GetRipSize(film.duration, film.videoKbps, film.audioKbps, film.originalWidth, film.originalHeight, film.fps);
            label14.Top         = lblAudio.Bottom; lblSize.Top = lblAudio.Bottom;
            int point = label14.Bottom;

            if (lblLink.Bottom > point)
            {
                point = lblLink.Bottom;
            }
            label15.Left = (int)((Size.Width - label15.Size.Width) / 2.0); label15.Top = point + 10;
            dgRips.Top   = label15.Bottom + 10;
            DoRips();
            AutoScrollPosition = new Point(0, 0);
        }
Beispiel #2
0
 public string GetSize()
 {
     return(RipService.GetRipSize(film.duration, videoKbps, audioKbps, width, height, fps));
 }