/* As usual, the school teaching us to abuse the ToString() method. * Happy? */ public override string ToString() { String genreString = ""; foreach (MovieGenre genre in GenreList) { genreString += genre.ToString() + ", "; } genreString = genreString.Substring(0, genreString.Length - 2); return(String.Format("{0,-30} {1,-15} {2, -20} {3, -20} {4, -20}", Title, Convert.ToString(Duration), genreString, Classification, OpeningDate.Day.ToString() + "-" + OpeningDate.ToString("MMM") + "-" + OpeningDate.ToString("yy"))); }
public void SetClosingDate() { OpeningDate.AddDays(Days); }