public void SetSpecialMenusParent(SpecialMenu parent) { foreach (SpecialMenu specialMenu in Menus.Values) { specialMenu.Parent = parent; specialMenu.SetSpecialMenusParent(this); } }
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); }