Ejemplo n.º 1
0
        protected void btnRegister_Click(object sender, EventArgs e)
        {
            string passWord = txtPassword.Text;
            string userName = txtUserName.Text;
            string email    = txtEmail.Text;
            String captCha  = txtCaptCha.Text;

            _Presenter.Register(userName, passWord, email, EnumObject.OutSider, captCha);
        }
Ejemplo n.º 2
0
        protected void btnRegister_Click(object sender, EventArgs e)
        {
            if (!this.IsValid)
            {
                return;
            }
            string passWord = txtPassword.Text;
            string userName = txtUserName.Text;
            string email    = txtEmail.Text;
            String captCha  = txtCaptCha.Text;

            _Presenter.Register(userName, passWord, email, DoiTuong, captCha);
        }
Ejemplo n.º 3
0
        private void _btnRegister_Click(object sender, EventArgs e)
        {
            if (String.IsNullOrWhiteSpace(_txtLastName.Text) || String.IsNullOrWhiteSpace(_txtName.Text) || String.IsNullOrWhiteSpace(_txtPass.Text) || String.IsNullOrWhiteSpace(_txtUser.Text))
            {
                Toast.MakeText(this, "The fields can not be empty", ToastLength.Long).Show();
            }

            else
            {
                RegisterPresenter presenter = new RegisterPresenter(this, new RegisterModel());
                presenter.Register();
            }
        }