private void btnDel_Click(object sender, EventArgs e) { try { DialogResult dr = MessageBox.Show(dataGridView1.CurrentRow.Cells[5].Value.ToString() + " 를(을) 삭제하시겠습니까?", "알림", MessageBoxButtons.OKCancel, MessageBoxIcon.Information); if (dr == DialogResult.OK) { bool bResult = service.DelelteFactory(Convert.ToInt32(lblID.Text)); if (bResult) { MessageBox.Show("삭제완료"); LoadData(); SetBottomStatusLabel(dataGridView1.CurrentRow.Cells[5].Value.ToString() + " 이 삭제 되었습니다."); } else if (!bResult) { MessageBox.Show("삭제 실패"); SetBottomStatusLabel("삭제 실패"); return; } } } catch (Exception err) { LoggingUtility.GetLoggingUtility(err.Message, Level.Error); } }