Example #1
0
        public View FindChildView(string signpost)
        {
            if (childViews.Count > 0)
            {
                if (CurrentNode != null)
                {
                    short signpostNumber = CurrentNode.FindSignpostNumber(signpost);

                    if (signpostNumber >= 0)
                    {
                        foreach (View childView in childViews)
                        {
                            if (childView.Signpost == signpostNumber)
                            {
                                return(childView);
                            }
                        }
                    }
                }

                foreach (View childView in childViews)
                {
                    View temp = childView.FindChildView(signpost);

                    if (temp != null)
                    {
                        return(temp);
                    }
                }
            }

            return(null);
        }