private void button1_Click(object sender, EventArgs e) { if (Password.Text != RetryPassword.Text) { MessageBox.Show("Yours passwords don't match.Please try again."); this.Password.Text = null; this.RetryPassword.Text = null; } else { _userService.Register(this.Name.Text, this.username.Text, this.Password.Text); this.Name.Text = null; this.username.Text = null; this.Password.Text = null; this.RetryPassword.Text = null; } }
private void button1_Click(object sender, EventArgs e) { _userService.Register(this.Name.Text, this.username.Text, this.Password.Text); this.Close(); }