private void btnDelete_Click(object sender, EventArgs e) { wnDm wDm = new wnDm(); int rsNum = wDm.Delete_Metal(txt_metalcd.Text.ToString()); if (rsNum == 0) { resetSetting(); MessageBox.Show("성공적으로 삭제하였습니다."); } else if (rsNum == 1) { MessageBox.Show("삭제에 실패하였습니다."); } }