public void clear()
        {
            bulkChangeInProcess = true;

            foreach (var n in selectedCategories)
            {
                n.Checked = false;

                clearParents(n.Parent);
            }

            CategoryTree.Refresh();


            selectedCategories.Clear();
            bulkChangeInProcess = false;
        }