Example #1
0
        private async void Button_OnClicked(object sender, EventArgs e)
        {
            string pinCodeText = PinCode.Text;

            if (!string.IsNullOrEmpty(pinCodeText))
            {
                AddAccountResult result = await server.AddIdent(Ident, false, pinCodeText);

                if (result.Error == null)
                {
                    await DisplayAlert("", $"{AppResources.Acc} " + Ident + $"{AppResources.AddLsString}", "ОК");

                    await paysPage.RefreshPaysData();

                    await PopupNavigation.Instance.PopAsync();

                    MessagingCenter.Send <Object>(this, "ClosePage");
                }
                else
                {
                    await DisplayAlert("", result.Error, "ОК");
                }
            }
        }