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);
}
}