public static PortletInstanceInPanelCollection GetPortletInstanceInPanelCollection(PanelInPage pip) { Database database = new Database("PSCPortalConnectionString"); PortletInstanceInPanelCollection result = new PortletInstanceInPanelCollection(pip); using (DbConnection connection = database.GetConnection()) { DbCommand command = result.GetSelectAllCommand(); command.Connection = connection; connection.Open(); DbDataReader reader = command.ExecuteReader(); while (reader.Read()) { PortletInstanceInPanel item = new PortletInstanceInPanel(reader); result.Add(item); } } return(result); }
public PanelInPageArgs(PanelInPage panelInPage, bool isEdit) { _panelInPage = panelInPage; _isEdit = isEdit; }
protected internal PortletInstanceInPanelCollection(PanelInPage pip) : base() { _panelInPage = pip; }