ComponentFactory.Krypton.Docking.KryptonDockingWorkspace.ShowPages C# (CSharp) Method

ShowPages() public method

Show all display elements of the provided pages.
public ShowPages ( KryptonPage pages ) : void
pages ComponentFactory.Krypton.Navigator.KryptonPage Array of references to pages that should be shown.
return void
        public void ShowPages(KryptonPage[] pages)
        {
            // Cannot show a null reference
            if (pages == null)
                throw new ArgumentNullException("pages");

            if (pages.Length > 0)
            {
                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;
                }

                ShowPages(uniqueNames);
            }
        }

Same methods

KryptonDockingWorkspace::ShowPages ( string uniqueNames ) : void