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