ComponentFactory.Krypton.Docking.KryptonAutoHiddenGroup.RestorePages C# (CSharp) 메소드

RestorePages() 공개 메소드

Convert matching placeholders into actual pages.
public RestorePages ( KryptonPage pages ) : void
pages ComponentFactory.Krypton.Navigator.KryptonPage Array of pages to restore.
리턴 void
        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);
                }
            }
        }