Esempio n. 1
0
        private async void submitBtn_Clicked(object sender, System.EventArgs e)
        {
            if (string.IsNullOrEmpty(UserNameEntry.Text))
            {
                await DisplayAlert("Sorry", "UserName cannot be empty..!", "OK");

                return;
            }
            if (string.IsNullOrEmpty(PasswordEntry.Text))
            {
                await DisplayAlert("Sorry", "Password cannot be empty..!", "OK");

                return;
            }

            if (PasswordEntry.Text == ConfirmPasswordEntry.Text)
            {
                _viewModel._user.Password = ConfirmPasswordEntry.Text;
                _viewModel.RegisterUser();
            }
            else
            {
                ErrorLabel.IsVisible = true;
            }
        }