private void btnDelete_Click(object sender, EventArgs e) { try { wnDm wDm = new wnDm(); int rsNum = wDm.delete_counter_code(txtCode.Text.ToString()); if (rsNum == 0) { MessageBox.Show("성공적으로 삭제하였습니다"); resetSetting(); selectGrid(); return; } else if (rsNum == 1) { MessageBox.Show("저장에 실패하였습니다"); return; } else { MessageBox.Show("Exception 오류"); return; } } catch (Exception ex) { MessageBox.Show("Excpetion 오류"); return; } }