private void btnDelete_Click(object sender, EventArgs e) { if (DialogResult.Yes == MessageBox.Show("Do you want to Delete this ? ", "Noted", MessageBoxButtons.YesNo, MessageBoxIcon.Question)) { DA.DA_BillManagement bill = new DA.DA_BillManagement(); bill.deleteDetail(dtFromdate.Value.ToString(), dtTodate.Value.ToString()); MessageBox.Show("You have successfully delete an employee !"); } }
public BL_BillManagement(GUI.FrmBillManagement frm) { this.frm = frm; bill = new DA.DA_BillManagement(); }