protected override void OnDisappearing() { CrossGeolocator.Current.PositionChanged -= testeAsync; CrossGeolocator.Current.StopListeningAsync().Wait(); AtualizacaoFrete.setConfirm(false); base.OnDisappearing(); }
private async System.Threading.Tasks.Task negaFreteAsync() { UserDialogs.Instance.ShowLoading("Negando..."); try { //var ret = await FreteFactory.create().aceitar(false, _Info.IdFrete, new MotoristaBLL().pegarAtual().Id); var ret = await FreteFactory.create().aceitar(new AceiteEnvioInfo { IdFrete = _Info.IdFrete, IdMotorista = new MotoristaBLL().pegarAtual().Id, Aceite = true }); UserDialogs.Instance.HideLoading(); Navigation.PopAsync(); } catch (Exception e) { UserDialogs.Instance.HideLoading(); AtualizacaoFrete.setConfirm(false); } }
protected override void OnDisappearing() { AtualizacaoFrete.setConfirm(false); base.OnDisappearing(); }