public NotifyAttached ( |
||
parent | ||
return | void |
/// <summary> /// Detach a page to this section. /// </summary> /// <param name="page"></param> public virtual void DetachPage(Page page) { Page pageFound; if (mPages.TryGetValue(page.PageID, out pageFound)) { if (page != pageFound) { mPages.Remove(pageFound.PageID); page.NotifyAttached(null); } } }
/// <summary> /// Attach a page to this section. /// </summary> /// <param name="page"></param> public virtual void AttachPage(Page page) { if (mPages.ContainsKey(page.PageID)) { //page with this id allready in map Page existingPage; mPages.TryGetValue(page.PageID,out existingPage); if (existingPage != page) { Manager.Queue.CancelOperationsForPage(existingPage); mPages.Remove(existingPage.PageID); existingPage = null; } } page.NotifyAttached(this); }