private void pos_del() { wnDm wDm = new wnDm(); int rsNum = wDm.deletePos(txt_pos_cd.Text.ToString()); if (rsNum == 0) { lbl_pos_gbn.Text = ""; txt_pos_cd.Enabled = true; txt_pos_cd.Text = ""; txt_pos_nm.Text = ""; txt_pos_cmt.Text = ""; btnDelete.Enabled = false; pos_list(); MessageBox.Show("성공적으로 삭제하였습니다."); } else if (rsNum == 1) { MessageBox.Show("삭제에 실패하였습니다"); } else { MessageBox.Show("Exception 에러"); } }