public frmTicketController(MetroForm form, MetroGrid grid, int reservationID) { this.form = form; this.grid = grid; //Start instantiation ticket = new Ticket(); database = new Database(form); //End instantiation ticket.getSetReservationID = reservationID; }
//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 }