public static string PanelStyleGet(int idPanel)
        {
            string      result = string.Empty;
            PanelInPage pip    = PanelInPageList.Search(PSCPortal.Engine.Panel.Parse(idPanel));

            result = pip.Style;
            return(result);
        }
        public static string PanelStyleUpdate(int idPanel, string style)
        {
            PanelInPage pip = PanelInPageList.Search(PSCPortal.Engine.Panel.Parse(idPanel));

            pip.Style = style;
            pip.Update();
            return(pip.Panel.ToString());
        }
        protected void lbtAddPanel_Click(object sender, EventArgs e)
        {
            int         idPanel = int.Parse(ddlPanel.SelectedValue);
            PanelInPage pip     = new PanelInPage();

            pip.Panel = PanelList.Search(PSCPortal.Engine.Panel.Parse(idPanel));
            PanelInPageList.AddDB(pip);
        }
        public static void PortletChangePosition(int panelId1, int index1, int panelId2, int index2)
        {
            PanelInPage panel1 = PanelInPageList.Where(p => p.Panel.Id == panelId1).Single();
            PanelInPage panel2 = PanelInPageList.Where(p => p.Panel.Id == panelId2).Single();

            if (panelId1 == panelId2)
            {
                PanelInPageList.PortletMove(panelId1, index1, index2);
            }
            else
            {
                PanelInPageList.PortletMove(panelId1, index1, panelId2, index2);
            }
        }