예제 #1
0
 public void SetSpecialMenusParent(SpecialMenu parent)
 {
     foreach (SpecialMenu specialMenu in Menus.Values)
     {
         specialMenu.Parent = parent;
         specialMenu.SetSpecialMenusParent(this);
     }
 }
예제 #2
0
        public string GetPath()
        {
            if (string.IsNullOrEmpty(path))
            {
                SpecialMenu parent = this;;
                while (parent != null)
                {
                    path   = parent.Name + pathSeperator + path;
                    parent = parent.Parent;
                }

                if (path == pathSeperator)
                {
                    path = string.Empty;
                }
            }

            return(path);
        }