private void ExecuteExpandSubtree()
 {
     if (m_selectedProject != null)
     {
         ProjectSetContainerNodeViewModel folder = m_selectedProject as ProjectSetContainerNodeViewModel;
         if (folder != null)
         {
             folder.SetExpandedRecursively(true);
         }
     }
 }
        private void CollapseAll(ProjectSetNodeViewModel node)
        {
            ProjectSetContainerNodeViewModel containerNode = node as ProjectSetContainerNodeViewModel;

            if (containerNode != null)
            {
                foreach (var child in containerNode.Children)
                {
                    CollapseAll(child);
                }

                containerNode.IsExpanded = false;
            }
        }
 private void UncheckAll()
 {
     if (m_selectedProject != null)
     {
         ProjectSetContainerNodeViewModel folder = m_selectedProject as ProjectSetContainerNodeViewModel;
         if (folder != null)
         {
             folder.UncheckRecursively();
         }
         else
         {
             m_selectedProject.IsIncluded = null;
         }
     }
 }