Пример #1
0
        protected void ctlPortals_RemoveAllButtonClick(object sender, EventArgs e)
        {
            //Add all Portals
            foreach (PortalInfo objPortal in PortalController.Instance.GetPortals())
            {
                DesktopModuleController.RemoveDesktopModuleFromPortal(objPortal.PortalID, DesktopModule.DesktopModuleID, false);
            }
            DataCache.ClearHostCache(true);

            BindDesktopModule(false);
        }
Пример #2
0
        protected void ctlPortals_RemoveButtonClick(object sender, DualListBoxEventArgs e)
        {
            if (e.Items != null)
            {
                foreach (string portal in e.Items)
                {
                    DesktopModuleController.RemoveDesktopModuleFromPortal(int.Parse(portal), DesktopModule.DesktopModuleID, false);
                }
            }
            DataCache.ClearHostCache(true);

            BindDesktopModule(false);
        }
Пример #3
0
        protected void ctlPortals_AddAllButtonClick(object sender, EventArgs e)
        {
            //Add all Portals
            var objPortals = new PortalController();

            foreach (PortalInfo objPortal in objPortals.GetPortals())
            {
                DesktopModuleController.AddDesktopModuleToPortal(objPortal.PortalID, DesktopModule.DesktopModuleID, true, false);
            }
            DataCache.ClearHostCache(true);

            BindDesktopModule(false);
        }