Exemplo n.º 1
0
        private void GetID()
        {
            //Call the getBookingID method from the Bookings class and save the ID as the variable newBookingsID.
            int newBookingID = Bookings.getBookingID();

            //Convert the BookingID to a string and display the new ID in lblDisplayBookingID along with the letters "BKG" before it.
            lblDisplayBookingID.Text = "BKG" + Convert.ToString(newBookingID);
        }