//method private async void numberPinAsync(int v) { if (countClick < 6) { numPin += v.ToString(); countClick += 1; switch (countClick) { case 1: BGColor1 = "Black"; break; case 2: BGColor2 = "Black"; break; case 3: BGColor3 = "Black"; break; case 4: BGColor4 = "Black"; break; case 5: BGColor5 = "Black"; break; case 6: BGColor6 = "Black"; break; } if ("111111" == numPin && countClick == 6) //check OTP { Loading.Start(Loader, LoaderBackground); var Succeed = await Services.AddAccounts(accountNO, App.User.ID); if (!Succeed) { await DisplayAlert("SomethingWrong", "Can't Add Accounts", "OK"); return; } Loading.Start(Loader, LoaderBackground); await Navigation.PushAsync(new AddAcountView.AddSavingAccountSuccess()); } else { } } else { await DisplayAlert("Error", "Error", "OK"); } }