public static List <ModuleDecoratedSiteMapNode> GetDecoratedNodes(
            ArrayList pageSettingsCol,
            int moduleId)
        {
            List <ModuleDecoratedSiteMapNode> pageList = new List <ModuleDecoratedSiteMapNode>();

            if (pageSettingsCol == null)
            {
                return(pageList);
            }

            DataTable dataTable = Module.GetPageModulesTable(moduleId);

            foreach (mojoSiteMapNode page in pageSettingsCol)
            {
                ModuleDecoratedSiteMapNode decoratedPage
                    = new ModuleDecoratedSiteMapNode(page);

                decoratedPage.ModuleId = moduleId;
                foreach (DataRow row in dataTable.Rows)
                {
                    int pageID = Convert.ToInt32(row["PageID"], CultureInfo.InvariantCulture);
                    if (pageID == page.PageId)
                    {
                        decoratedPage.IsPublished = true;
                        decoratedPage.PaneName    = row["PaneName"].ToString();

                        if (decoratedPage.PaneName.Length == 0)
                        {
                            decoratedPage.PaneName = "contentpane";
                        }

                        decoratedPage.ModuleOrder      = Convert.ToInt32(row["ModuleOrder"], CultureInfo.InvariantCulture);
                        decoratedPage.PublishBeginDate = row["PublishBeginDate"].ToString();
                        decoratedPage.PublishEndDate   = row["PublishEndDate"].ToString();
                    }
                }

                pageList.Add(decoratedPage);
            }

            return(pageList);
        }
        public static List<ModuleDecoratedSiteMapNode> GetDecoratedNodes(
            ArrayList pageSettingsCol,
            int moduleId)
        {
            List<ModuleDecoratedSiteMapNode> pageList = new List<ModuleDecoratedSiteMapNode>();

            if (pageSettingsCol == null) return pageList;

            DataTable dataTable = Module.GetPageModulesTable(moduleId);
            foreach (mojoSiteMapNode page in pageSettingsCol)
            {
                ModuleDecoratedSiteMapNode decoratedPage
                    = new ModuleDecoratedSiteMapNode(page);

                decoratedPage.ModuleId = moduleId;
                foreach (DataRow row in dataTable.Rows)
                {
                    int pageID = Convert.ToInt32(row["PageID"], CultureInfo.InvariantCulture);
                    if (pageID == page.PageId)
                    {
                        decoratedPage.IsPublished = true;
                        decoratedPage.PaneName = row["PaneName"].ToString();

                        if (decoratedPage.PaneName.Length == 0)
                        {
                            decoratedPage.PaneName = "contentpane";
                        }

                        decoratedPage.ModuleOrder = Convert.ToInt32(row["ModuleOrder"], CultureInfo.InvariantCulture);
                        decoratedPage.PublishBeginDate = row["PublishBeginDate"].ToString();
                        decoratedPage.PublishEndDate = row["PublishEndDate"].ToString();

                    }

                }

                pageList.Add(decoratedPage);

            }

            return pageList;
        }