示例#1
0
 public void RebindData()
 {
     if (this.BookingServiceId > 0)
     {
         DataServiceHelper.ListBookingRoomServiceAsync(this.BookingServiceId, null, null, ListBookingRoomServiceCompleted);
     }
 }
示例#2
0
        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);
            }
        }