private void button1_Click(object sender, EventArgs e) { if (txtPW.Text != txtPWCheck.Text) { MessageBox.Show("비밀번호가 일치하지 않습니다."); return; } else { MessageBox.Show("비밀번호가 변경되었습니다."); memDB.ResetPasswd(resetPw); this.Close(); } }