/// <summary> /// 初始化,多标题,多路径 /// </summary> /// <param name="path"></param> /// <param name="page"></param> public PageModel(string path, string title, PageModel page) { Copy(page); Path = path; Title = title; }
/// <summary> /// 初始化,单标题,多路径 /// </summary> /// <param name="path"></param> /// <param name="page"></param> public PageModel(string path, PageModel page) { Copy(page); IfHidden = true; Path = path; }
/// <summary> /// 初始化,多标题,单路径 /// </summary> /// <param name="page"></param> /// <param name="title"></param> public PageModel(PageModel page, string title) { Copy(page); Title = title; }
/// <summary> /// 添加子节点 /// </summary> /// <param name="page"></param> public void AddChild(PageModel page) { Children.Add(page); page.Father = this; }