예제 #1
0
 private void LoadPage(WidgetPageData widgetPage, bool editable)
 {
     LoadPage(widgetPage, editable, true);
 }
예제 #2
0
 private void LoadPage(WidgetPageData widgetPage, bool editable, bool show)
 {
     WidgetControls_widget_list_container ctrl = LoadControl(WidgetListContainerPath) as WidgetControls_widget_list_container;
     ctrl.ID = "widget_page_" + widgetPage.ID.ToString();
     ctrl.Visible = false;
     IWidgetListContainerView view = ctrl as IWidgetListContainerView;
     IWidgetListContainerController controller = WidgetListContainerFactory.GetController(view);
     ctrl.Editable = editable;
     phWidgetPages.Controls.Add(ctrl);
     //if(show)
     //controller.Show(widgetPage.WidgetListContainerID);
 }
예제 #3
0
    void IWidgetSpaceView.ViewPage(WidgetPageData widgetPage)
    {
        List<WidgetPageData> pages = new List<WidgetPageData>(_pages);
        pages.Add(widgetPage);
        _pages = pages.ToArray();

        //phWidgetPages.Controls.Clear();
        LoadPage(widgetPage, _siteApi.UserId == _foreignID ||
                             _siteApi.IsAdmin(),
                             true);

        if (_pages.Length == 1)
            SelectTab(0);
        else
            SelectTab(_pages.Length - 1);

        RenderTabs();
    }