void IWidgetListContainerView.ViewWidgetList(WidgetListData widgetList) { WidgetControls_widget_list widgetListControl = LoadControl(WidgetListPath) as WidgetControls_widget_list; widgetListControl.Editable = Editable; widgetListControl.ID = "widget_list_" + widgetList.ID.ToString(); phWidgetLists.Controls.Add(widgetListControl as Control); (widgetListControl as IWidgetListView).View(widgetList); }
void IWidgetListView.View(WidgetListData widgetList) { _widgetList = widgetList; foreach (WidgetData widget in widgetList.Widgets) { LoadWidget(widget); } }