/// <summary> /// Create a new instance of a Movie /// </summary> /// <param name="name"></param> /// <param name="description"></param> /// <param name="ageRating"></param> /// <param name="reviewScore"></param> /// <param name="trailerUrl"></param> /// <param name="auditorium"></param> /// <param name="price"></param> /// <param name="stock"></param> public Movie(String name, string description, int ageRating, double reviewScore, string trailerUrl, Auditorium auditorium = null, double price = 0.0, int stock = 0) : base(name, price, stock) { Description = description; AgeRating = ageRating; ReviewScore = reviewScore; TrailerUrl = trailerUrl; Auditorium = auditorium; }
/// <summary> /// Creates auditorium using png file /// </summary> /// <param name="controller"></param> public AuditoriumImporter(Controller controller) { Controller = controller; string AuditoriumName = ""; Console.WriteLine(Strings.EnterAudi); AuditoriumName = Console.ReadLine(); Auditorium = new Auditorium(AuditoriumName); string FilePath = ""; Console.WriteLine(Strings.EnterAudiPath); FilePath = Console.ReadLine(); if (File.Exists(FilePath)) { ParseImageData(FilePath); } }
public void SetAuditorium(Auditorium auditorium) { Auditorium = auditorium; }
public void AddAuditorium(Auditorium auditorium) { Auditoria.Add(auditorium); SaveAuditoriumData(); }