ComponentFactory.Krypton.Docking.KryptonDockingManager.StorePages C# (CSharp) Method

StorePages() public method

Replace named pages with store placeholders so they can be restored at a later time.
public StorePages ( KryptonPage pages ) : void
pages KryptonPage Array of references to pages that should be replaced.
return void
        public void StorePages(KryptonPage[] pages)
        {
            // Cannot replace a null reference
            if (pages == null)
                throw new ArgumentNullException("pages");

            if (pages.Length > 0)
            {
                // Cannot replace a null page reference
                string[] uniqueNames = new string[pages.Length];
                for (int i = 0; i < uniqueNames.Length; i++)
                {
                    // Cannot show a null page reference
                    if (pages[i] == null)
                        throw new ArgumentException("pages array contains a null page reference");

                    uniqueNames[i] = pages[i].UniqueName;
                }

                StorePages(uniqueNames);
            }
        }

Same methods

KryptonDockingManager::StorePages ( string uniqueNames ) : void
KryptonDockingManager