private async void UpdateList() { PopupNavigation.Instance.PushAsync(new LoadingScreen(), true); // Show loading screen Pros = new List <Process>(); try { Pros = await Place.GetProcesses(true); vm = new ProcessInPlaceViewModel(Place); vm.Update(Pros); BindingContext = vm; vm.Initialize(); } catch (Exception ex) { Static.Functions.CreateError(ex, "No connection", nameof(this.UpdateList), this.GetType().Name); await DisplayAlert("Brak połączenia", "Nie można połączyć się z serwerem. Prawdopodobnie utraciłeś połączenie internetowe. Upewnij się, że masz połączenie z internetem i spróbuj jeszcze raz", "OK"); } finally { } vm.SelectedItem = null; if (PopupNavigation.Instance.PopupStack.Any()) { await PopupNavigation.Instance.PopAllAsync(true); } }
public ScanningResults(Place nPlace, bool isQrConfirmed = false) { InitializeComponent(); //Pros = Proses; Place = nPlace; IsQrConfirmed = isQrConfirmed; Keeper = new PlacesKeeper(); vm = new ProcessInPlaceViewModel(Place); BindingContext = vm; lblScanResult.Text = Place.Name; }