Ejemplo n.º 1
0
        private async Task FillComboboxWithAllBookingsAsync()
        {
            var ids = new List <int>();

            await BookingViewModel.GetAllBookingsAsync();

            foreach (var booking in BookingViewModel.AllBookings)
            {
                ids.Add(booking.Id);
            }

            ComboBoxBookings.ItemsSource = ids;
        }