private void btnDeleteCategory_Click(object sender, EventArgs e) { efCategoryRepository.DeleteCategory(idCategory); dataGridViewCategory.DataSource = efCategoryRepository.GetActiveCategory(); efCategoryRepository.TextBoxEraser(grpDeleteCategory); }
private void btnDeleteCategoryDelete_Click(object sender, EventArgs e) { efCategoryRepository.DeleteCategory(int.Parse(txtDeleteCategoryId.Text)); dataGridView1.DataSource = efCategoryRepository.GetActiveCategory(); efCategoryRepository.Eraser(grpDeleteCategory); }