private void btnDelete_Click(object sender, EventArgs e) { bool isDelete = accMaster.DeleteAccountMasterById(groupId); if (isDelete) { LedgerPostingBL objBL = new LedgerPostingBL(); if (objBL.LedgerPostingDelete(groupId)) { MessageBox.Show("Delete Successfully!"); ClearControls(); groupId = 0; Administration.List.AccountList frmList = new Administration.List.AccountList(); frmList.StartPosition = FormStartPosition.CenterScreen; frmList.ShowDialog(); FillAccountInfo(); } } }