コード例 #1
0
 /// <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;
 }
コード例 #2
0
        /// <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);
            }
        }
コード例 #3
0
 public void SetAuditorium(Auditorium auditorium)
 {
     Auditorium = auditorium;
 }
コード例 #4
0
 public void AddAuditorium(Auditorium auditorium)
 {
     Auditoria.Add(auditorium);
     SaveAuditoriumData();
 }