Example #1
0
        private void UpdateTickets()
        {
            availableTickes.Items.Clear();
            bookedTickets.Items.Clear();

            var availibleSeats = _wagon.GetAvailibleSeats(_selectedDate);

            foreach (var seat in availibleSeats)
            {
                availableTickes.Items.Add(seat);
            }

            var bookedSeats = _wagon.GetBookedSeats(_selectedDate);

            foreach (var seat in bookedSeats)
            {
                bookedTickets.Items.Add(seat);
            }
        }