private void Button_Click(object sender, RoutedEventArgs e) { if (cardInfo.CheckClientPassword(Password.Text)) { this.DialogResult = true; } else { MessageBox.Show(this, "비밀번호가 일치하지 않습니다!"); } }