private void Refresh()
        {
            List <BusinessRuleComponentVO> list = RulesHelper.GetComponentList();

            if (_isSelection)
            {
                //Only show parent components.
                list = (from l in list
                        where l.ParentId == Guid.Empty
                        select l).ToList();
            }

            lvComponents.ItemsSource = list;
        }