C#影院售票系统毕业设计(1)

2019-12-30 11:02:24王冬梅
  •  {   private string _time; 
  •  /// <summary>   /// 放映时间 
  •  /// </summary>   public string Time 
  •  {   get { return _time; } 
  •  set { _time = value; }   } 
  •  private Movie _movie = new Movie();    
  •  /// <summary>   /// 本场放映的电影 
  •  /// </summary>   public Movie Movie 
  •  {   get { return _movie; } 
  •  set { _movie = value; }   } 
  •  private List<Ticket> _soldTickets=new List<Ticket>();    
  •  private Dictionary<string, Seat> _seats=new Dictionary<string,Seat>();   /// <summary> 
  •  /// 本场次的座位状态   /// </summary> 
  •  public Dictionary<string, Seat> Seats   { 
  •  get { return _seats; }   set { _seats = value; } 
  •  }   } 
  •  }  ?

    7.Schedule:放映计划类

    放映场次属性(Items):自定义泛型集合Dictionary<string,ScheduleItem>

    读取XML文件获取放映计划集合的LoadItems()方法

    ?
    1. using System;   using System.Collections.Generic; 
    2.  using System.Linq;   using System.Text; 
    3.  using System.Threading.Tasks;   using System.Xml; 
    4.    namespace 影院售票系统 
    5.  {   /// <summary> 
    6.  /// 放映计划类,保存影院当天的放映计划集合   /// </summary> 
    7.  public class Schedule   { 
    8.  /// <summary>   /// 放映场次