public TicketForm() { InitializeComponent(); ticketOffList = new List <string>(); movieTicket = new MovieTicket(); ticketTypeItems = movieTicket.TicketTypeDataSource(); //讀取學生折扣的內容 this.comboStudent.DataSource = movieTicket.StudentDiscountSource(); //讀取屁孩折扣的內容 this.comboChildren.DataSource = movieTicket.ChildrenDiscountSource(); //讀取票種的內容 this.comboTicketType.DataSource = ticketTypeItems; }
public TicketForm() { InitializeComponent(); ticketOffList = new List<string>(); movieTicket = new MovieTicket(); ticketTypeItems = movieTicket.TicketTypeDataSource(); //讀取學生折扣的內容 this.comboStudent.DataSource = movieTicket.StudentDiscountSource(); //讀取屁孩折扣的內容 this.comboChildren.DataSource = movieTicket.ChildrenDiscountSource(); //讀取票種的內容 this.comboTicketType.DataSource = ticketTypeItems; }