async void btnEnviarOnBase_Clicked(object sender, System.EventArgs e) { try { string respuesta = FlujoViewModel.ValidaDatosEnvio(); if (respuesta != "OK") { await DisplayAlert("VALIDACION", respuesta, "OK"); return; } // Conexión a la red de datos if (!NetworkConnectivityHelper.IsNetworkConnected) { await DisplayAlert("ONBASE", "Conexión a Wifi o a red de datos no disponible...", "OK"); return; } // Popup de envio a OnBase await PopupNavigation.Instance.PushAsync(new EnvioOnBasePopup()); } catch (Exception ex) { await DisplayAlert("EXCEPCION", $"Excepción en 'Enviar Fotos'!\nEx({ex.GetType()}-{ex.Message})", "OK"); } }
public FlujoPage(FlujoViewModel flujoViewModel) { InitializeComponent(); Globals.FlujoPageInstance = this; FlujoViewModel = flujoViewModel; BindingContext = flujoViewModel; pckTipoDocumental.ItemsSource = FlujoViewModel.TiposDocumento; lblEtiqUsuario.Text = "Usuario:"; // Resizing if (DeviceDisplay.MainDisplayInfo.Width <= 480) { btnBuscarFlujo.FontSize = Globals.FontSizeMicro; btnFotosGaleria.FontSize = Globals.FontSizeMicro; btnTomarFoto.FontSize = Globals.FontSizeMicro; btnEnviarOnBase.FontSize = Globals.FontSizeMicro; lblEtiqUsuario.Text = string.Empty; } }