⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 movie.cs

📁 影院售票管理系统 (1)具有方便、快速的售票功能
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.Text;

namespace dianyingyuan
{
    [Serializable]
    class Movie
    {
        /// <summary>
        /// 主演
        /// </summary>
        private string actor;

        public string Actor
        {
            get { return actor; }
            set { actor = value; }
        }
        /// <summary>
        /// 导演
        /// </summary>
        private string director;

        public string Director
        {
            get { return director; }
            set { director = value; }
        }
        /// <summary>
        /// 电影名
        /// </summary>
        private string movieName;

        public string MovieName
        {
            get { return movieName; }
            set { movieName = value; }
        }
        /// <summary>
        /// 电影类型
        /// </summary>
        private MovieType movieType;

        public MovieType MovieType
        {
            get { return movieType; }
            set { movieType = value; }
        }
        /// <summary>
        /// 放映时间列表
        /// </summary>
        private List<string> showTimeList;

        public List<string> ShowTimeList
        {
            get { return showTimeList; }
            set { showTimeList = value; }
        }
        /// <summary>
        /// 价格
        /// </summary>
        private int price;

        public int Price
        {
            get { return price; }
            set { price = value; }
        }

        /// <summary>
        /// 图片名
        /// </summary>
        private string picture;

        public string Picture
        {
            get { return picture; }
            set { picture = value; }
        }

        public Movie(string movieName, string picture,
            string director, string actor, MovieType movieType,
            int price, List<string> showTimeList) 
        {
            this.MovieName = movieName;
            this.Picture = picture;
            this.Director = director;
            this.Actor = actor;
            this.MovieType = movieType;
            this.Price = price;
            this.ShowTimeList = showTimeList;
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -