public KryptonPage[] VisiblePages()
{
List<KryptonPage> pages = new List<KryptonPage>();
// Only interested in visible pages that are not placeholders
foreach (KryptonPage page in AutoHiddenGroupControl.Pages)
if ((page is KryptonAutoHiddenProxyPage) && page.LastVisibleSet)
{
// Add the actual page this proxy wraps
KryptonAutoHiddenProxyPage proxyPage = (KryptonAutoHiddenProxyPage)page;
pages.Add(proxyPage.Page);
}
return pages.ToArray();
}