public void RestorePages(KryptonPage[] pages)
{
foreach (KryptonPage page in pages)
{
// If a matching page exists and it is not a store placeholder already
KryptonPage storePage = Pages[page.UniqueName];
if ((storePage != null) && (storePage is KryptonStorePage))
{
// Replace the existing placeholder with the actual page
Pages.Insert(Pages.IndexOf(storePage), page);
Pages.Remove(storePage);
}
}
}