private void btnDelete_Click(object sender, EventArgs e) { //ItemMasterModel objmodel = objItemMasterBl.GetItemNameByTaxCategoryname(tbxName.Text.Trim()); //if (objmodel.Name != null) //{ // MessageBox.Show("Can Not Delete Tax Name Under Tag With Item Name.." + objmodel.Name); // tbxName.Focus(); //} //if (objmodel.Name == null) //{ bool isDelete = objtaxbl.DeleteGSTCategorById(GST_Id); if (isDelete) { MessageBox.Show("Delete Successfully!"); ClearFormValues(); GST_Id = 0; Administration.List.GSTcategoryList frmList = new Administration.List.GSTcategoryList(); frmList.StartPosition = FormStartPosition.CenterScreen; frmList.ShowDialog(); FillGSTCategoryInfo(); } //} }