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);
}
/// <summary>