Exemple #1
0
        public void OnClickRegisterButton()
        {
            Tasky.BL.Managers.RemoteTaskManager.loggedUser = null;

            username      = FindViewById <EditText>(Resource.Id.register_username);
            password      = FindViewById <EditText>(Resource.Id.register_password);
            passwordAgain = FindViewById <EditText>(Resource.Id.register_password_again);

            string passwordAgain = passwordAgain.Text;
            string password      = password.Text;

            if (!passwordAgain.Equals(password))
            {
                Toast.MakeText(this, "Passwords not match.", ToastLength.Long).Show();
                this.password.Text      = "";
                this.passwordAgain.Text = "";
            }
            else
            {
                LoginScreen.OnClickLoginButton();
            }
        }