public frmReservationController(MetroForm form, int customerID, List<int> seatID, int showID) { this.form = form; this.customerID = customerID; this.seatID = seatID; this.showID = showID; //Start instantiation reservation = new Reservation(customerID, DateTime.Now.Date); database = new Database(form); //End instantiation }
//End variables //Constructor public frmTicketController(MetroForm form, List<int> seatID, int showID, int customerID, MetroGrid grid) { this.showID = showID; this.seatID = seatID; this.form = form; this.grid = grid; this.customerID = customerID; //Start instantiations reservationController = new frmReservationController(form, customerID, seatID, showID); reservation = new Reservation(customerID, DateTime.Now.Date); database = new Database(form); ticket = new Ticket(); //End instantiations }