private void btnDelete_Click(object sender, EventArgs e) { try { wnDm wDm = new wnDm(); int rsNum = wDm.Delete_Excel_Input(txt_publish_date.Text.ToString(), txt_publish_cd.Text.ToString(), BillGrid); if (rsNum == 0) { resetSetting(); } else if (rsNum == 1) { MessageBox.Show("삭제에 실패하였습니다"); } else { MessageBox.Show("sql 에러"); } } catch (Exception ex) { MessageBox.Show("Exception 오류"); Popup.pop오류리포트 msg = new Popup.pop오류리포트(ex.Message + " - " + ex.ToString()); msg.ShowDialog(); } }