public async Task Refresh()
 {
     Model.BookingsChanged += (sender, args) =>
     {
         Device.BeginInvokeOnMainThread(() =>
         {
             BookingsList.Clear();
             foreach (var booking in args.NewBookings)
             {
                 BookingsList.Add(booking);
             }
         });
     };
     await Model.FetchBookings();
 }
Пример #2
0
 private void AddBooking(Booking booking)
 {
     BookingsList.Add(booking);
     MessageBox.Success("Accommodation has been booked.");
 }