async void GetAuthCode() { if (Settings.Person.Accounts != null && Settings.Person.Accounts.Count > 0) { if (string.IsNullOrWhiteSpace(Settings.Person.Phone)) { await DisplayAlert(AppResources.ErrorTitle, AppResources.ErrorOSSRegisterAddPhone, "OK"); return; } //вызвали метод сервера для получения регстрационного кода по телефону/номеру счета var r = await rc.OSSCheckCode(Settings.Person.Phone, Settings.Person.Accounts[0].Ident); if (!string.IsNullOrWhiteSpace(r.Error)) { await DisplayAlert(AppResources.ErrorTitle, AppResources.ErrorOSSRegisterCode + r.Error, "OK"); return; } await DisplayAlert(AppResources.ToGetSignature, AppResources.ToGetSignatureText, "OK"); } else { await DisplayAlert(AppResources.ErrorTitle, AppResources.EnterIdent, "OK"); return; } }