示例#1
0
        private void FillAdditionalInfo(Movie m, Showtime s)
        {
            var hours   = m.Runtime.ToString("hh");
            var minutes = m.Runtime.ToString("mm");
            var rating  = "PG-13";

            AdditionalInfo = $"{hours} hrs {minutes} min | {rating}";
        }
示例#2
0
 public MovieListItem(Movie movie, Showtime showtime)
 {
     Movie    = movie;
     Showtime = showtime;
     FillAdditionalInfo(movie, showtime);
 }