public static void SetCategoryColor()

in DiagManager/DiagClasses/DiagTreeMgr.cs [112:145]


        public static void SetCategoryColor (TreeNode node)
        {
            bool AllChecked = true;
            bool AnyChecked = false;

            foreach (TreeNode childNode in node.Nodes)
            {
                if (!childNode.Checked && AllChecked == true)
                {
                    AllChecked = false;
                }
                if (childNode.Checked && AnyChecked == false)
                {
                    AnyChecked = true;
                }
            }


            if (AnyChecked && !AllChecked)
            {
                node.ForeColor = System.Drawing.Color.Blue;
             

            }
            else if (AllChecked)
            {
                node.ForeColor = System.Drawing.Color.Green;
            }
            else //no selected
            {
                node.ForeColor = System.Drawing.Color.Black;
            }
            
        }