コード例 #1
0
        public async void SignUp()
        {
            Console.WriteLine($"Sign Up!");
            bool isRegistrationSuccessful = await serverWorker.TaskRegistrateNewPlayer(
                User.Name,
                User.LastName,
                User.Login,
                User.Password,
                User.ConfirmPassword,
                String.Format("{0:dd-MM-yyyy}", User.Birthday), User.Email, loginPageViewModel.Token ?? "");

            if (isRegistrationSuccessful)
            {
                RegistrationStep += 1;
            }
            else
            {
                await App.Current.MainPage.DisplayAlert("Error", "Registration unsuccessful =( Try again later", "OK");
            }
        }