public WidgetListModel(Guid guidContentID) { this.Root_ContentID = guidContentID; this.PlaceholderName = String.Empty; using (WidgetHelper widgetHelper = new WidgetHelper()) { this.Controls = widgetHelper.GetWidgets(guidContentID, false); } }
public static List <Widget> GetCurrentPageLiveWidgets(Guid guidContentID) { List <Widget> pageWidgets = new List <Widget>(); using (WidgetHelper widgetHelper = new WidgetHelper()) { pageWidgets = widgetHelper.GetWidgets(guidContentID, !SecurityData.AdvancedEditMode); } return(pageWidgets); }
public List <Widget> GetWidgetList() { List <Widget> widgets = null; using (WidgetHelper pwh = new WidgetHelper()) { widgets = pwh.GetWidgets(this.Root_ContentID, false); } return(widgets); }
public static List<Widget> GetCurrentPageLiveWidgets(Guid guidContentID) { List<Widget> pageWidgets = new List<Widget>(); using (WidgetHelper widgetHelper = new WidgetHelper()) { pageWidgets = widgetHelper.GetWidgets(guidContentID, !SecurityData.AdvancedEditMode); } return pageWidgets; }
public List<Widget> GetWidgetList() { List<Widget> widgets = null; using (WidgetHelper pwh = new WidgetHelper()) { widgets = pwh.GetWidgets(this.Root_ContentID, false); } return widgets; }