Esempio n. 1
0
        public int CountMorph()
        {
            int result = Morph ? 1 : 0;

            foreach (NJS_OBJECT item in Children)
            {
                result += item.CountMorph();
            }
            if (Parent == null && Sibling != null)
            {
                result += Sibling.CountMorph();
            }
            return(result);
        }