public void PrintChildren(IAddressSpaceElement element, ref int bLevel)
        {
            ArrayList children = element.GetChildren();

            foreach (DaAddressSpaceElement child in children)
            {
                if (child == null)
                {
                    continue;
                }

                string line = string.Empty;
                for (byte i = 0; i < bLevel; i++)
                {
                    line += string.Format("  ");
                }                   //	end for

                System.Console.WriteLine(string.Format("{0}[{1}]", line, child.Name));

                if (child.HasChildren == true)
                {
                    bLevel++;
                    PrintChildren(child, ref bLevel);
                    bLevel--;
                } //	end if
            }     //	end foreach
        }         //	end PrintChildren
        public void ShowObjectTree()
        {
            System.Console.WriteLine("CURRENT ADDRESS SPACE");
            IAddressSpaceElement root = Application.Instance.DaAddressSpaceRoot as IAddressSpaceElement;
            int level = 0;

            PrintChildren(root, ref level);

            System.Console.WriteLine(String.Format("Press Ctrl-C to exit"));
        }