Пример #1
0
        private void btDeleteCategory_Click(object sender, EventArgs e)
        {
            if (tvProduct.SelectedNode.Text != null && tvProduct.SelectedNode.Parent == null)
            {
                LoaiSanPhamDAO.DeleteLoaiSP(tvProduct.SelectedNode.Tag.ToString());

                DisplayProductTreeView();
                DisplayCategory();
            }
        }