public void RebindData() { if (this.BookingServiceId > 0) { DataServiceHelper.ListBookingRoomServiceAsync(this.BookingServiceId, null, null, ListBookingRoomServiceCompleted); } }
private void ListRoomServiceCompleted(List <RoomService> services) { Globals.IsBusy = false; uiServiceList.ItemsSource = services; if (services.Count > 0) { uiServiceList.SelectedIndex = 0; } Booking selectedBooking = gvwBooking.SelectedItem as Booking; if (selectedBooking != null && selectedBooking.BookingId > 0) { Globals.IsBusy = true; DataServiceHelper.ListBookingRoomServiceAsync(null, selectedBooking.BookingId, null, ListBookingRoomServiceCompleted); } }