//public async Task DoSomethingAsync() //{ // _Global.CurrentAccount.phone1 = "5355043317"; // _Global.CurrentAccount.i_account = 20616781; // _Global.CurrentAccount.balance = new decimal(25); // //try // //{ // // if (_Global.RunTask) // // { // // if (_Global.CurrentAccount.firstname == null) // // { // // LayoutInfoAccount.IsVisible = false; // // LayoutMenu.IsVisible = false; // // LayoutCargandoParametros.IsVisible = true; // // } // // else // // { // // LayoutInfoAccount.IsVisible = true; // // LayoutMenu.IsVisible = true; // // LayoutCargandoParametros.IsVisible = false; // // } // // var result = await ActualizarInformacionCuenta(); // // if (_Global.CurrentAccount.firstname == null) // // { // // LayoutInfoAccount.IsVisible = false; // // LayoutMenu.IsVisible = false; // // LayoutCargandoParametros.IsVisible = true; // // } // // else // // { // // LayoutInfoAccount.IsVisible = true; // // LayoutMenu.IsVisible = true; // // LayoutCargandoParametros.IsVisible = false; // // } // // if (!result) // // { // // await DisplayAlert("TeleYuma", "No se ha podido cargar los parámetros de configuración, verifique su conexión ó contacte a soporte", "ok"); // // Application.Current.MainPage = new PagesInicio.Login(); // // return; // // } // // else // // if (!await _Global.RecMovilConfig.GetPorcientoRecargaMovil()) // // { // // await DisplayAlert("TeleYuma", "No se ha podido cargar los parámetros de configuración, verifique su conexión ó contacte a soporte", "ok"); // // Application.Current.MainPage = new PagesInicio.Login(); // // return; // // } // // else // // if (_Global.CurrentAccount.blocked == "Y") // // { // // await DisplayAlert("TeleYuma", "Su cuenta ha sido bloqueada contacte a soporte", "ok"); // // Application.Current.MainPage = new PagesInicio.Login(); // // } // // } // //} // //catch { } // await Task.Delay(3000); // 3 second delay // DoSomethingAsync(); //} //public async Task<bool> ActualizarInformacionCuenta() //{ // //_Global.CurrentAccount = await _Global.CurrentAccount.GetAccountInfo(); // //if (_Global.CurrentAccount.id == null) // //{ // // return false; // //} // //else // //{ // // _Global.VM.VMHome.ActualizarDatos(); // // return true; // //} // return true; //} private void btnEditCuenta_Clicked(object sender, EventArgs e) { try { var cuenta = new PagesInicio.CrearCuenta(); cuenta.CargarDatos(); cuenta.Transaction = TipoTransaction.Edit; this.Navigation.PushAsync(cuenta); } catch { } }
private async void accountToolbarItem_Clicked(object sender, EventArgs e) { try { var cuenta = new PagesInicio.CrearCuenta(); cuenta.Transaction = TipoTransaction.Edit; cuenta.CargarDatos(); this.Navigation.PushAsync(cuenta); } catch { } }