async void ContinueSignIn() { Debug.WriteLine($"check against username:{Username}, password:{Password}"); var _user = new UserAuthInfoObject { Email = Username, Password = Password, AuthType = AuthType.SignIn, }; IsBusy = true; var result = await serviceConnect.Connect(_user); IsBusy = false; switch (result) { case ServerReplyStatus.Success: MyApp.OnLogin(); break; case ServerReplyStatus.NotConfirmed: await MyApp.MainPage.DisplayAlert("Error!", "Email not confirmed, \nPlease check your email to confirm your account", "Ok"); break; case ServerReplyStatus.InvalidPassword: await MyApp.MainPage.DisplayAlert("Error!", "Invalid password!", "Ok"); break; case ServerReplyStatus.UserNotFound: await MyApp.MainPage.DisplayAlert("Error!", "Username not found!", "Ok"); break; default: await MyApp.MainPage.DisplayAlert("Error!", "Something went wrong", "Ok"); break; } }