private async Task LoadData() { try { this.IsBusy = true; /* * UserDialogs.Instance.Toast(new ToastConfig("TOAST") { * Message = "HAI CANCELLATO", * Action = new ToastAction() { * Action = new Action(() => { * DisplayAlert("TITLE", "messagggio2", "OK"); * }) * } * }); */ // UserDialogs.Instance.ShowLoading(); ListViewElementi.ItemsSource = await _webApiProxy.GetAll(); // var result = await DisplayActionSheet("TITLE", "CANCEL", "DISRUGGI", "UNO", "DUE", "TRE"); } catch (Exception ex) { this.IsBusy = false; await DisplayAlert("", ex.Message, "OK"); } finally { // UserDialogs.Instance.HideLoading(); this.IsBusy = false; } }