private static void AssignPortals(DesktopModuleInfo desktopModule, IList <ListItemDto> portals)
 {
     foreach (var portal in portals)
     {
         DesktopModuleController.AddDesktopModuleToPortal(portal.Id, desktopModule.DesktopModuleID, true, true);
     }
 }
예제 #2
0
        protected void ctlPortals_AddAllButtonClick(object sender, EventArgs e)
        {
            //Add all Portals
            foreach (PortalInfo portal in PortalController.Instance.GetPortals())
            {
                DesktopModuleController.AddDesktopModuleToPortal(portal.PortalID, DesktopModule.DesktopModuleID, true, false);
            }
            DataCache.ClearHostCache(true);

            BindDesktopModule(false);
        }
        protected void OnAddAllModulesClick(object sender, EventArgs e)
        {
            //Add all Modules
            foreach (DesktopModuleInfo desktopModule in DesktopModuleController.GetDesktopModules(Null.NullInteger).Values)
            {
                DesktopModuleController.AddDesktopModuleToPortal(_portalId, desktopModule.DesktopModuleID, true, false);
            }
            DataCache.ClearPortalCache(_portalId, false);

            BindDesktopModules();
        }
예제 #4
0
        protected void ctlPortals_AddButtonClick(object sender, DualListBoxEventArgs e)
        {
            if (e.Items != null)
            {
                foreach (string portal in e.Items)
                {
                    DesktopModuleController.AddDesktopModuleToPortal(int.Parse(portal), DesktopModule.DesktopModuleID, true, false);
                }
            }
            DataCache.ClearHostCache(true);

            BindDesktopModule(false);
        }
        protected void OnAddModuleClick(object sender, DualListBoxEventArgs e)
        {
            if (e.Items != null)
            {
                foreach (string desktopModule in e.Items)
                {
                    DesktopModuleController.AddDesktopModuleToPortal(_portalId, int.Parse(desktopModule), true, false);
                }
            }
            DataCache.ClearPortalCache(_portalId, false);

            BindDesktopModules();
        }