Ejemplo n.º 1
0
        protected void MakeNeutral_Click(object sender, EventArgs e)
        {
            var tab = ddlPages.SelectedPage;

            if (TabController.GetTabsByPortal(PortalId).WithParentId(tab.TabID).Count == 0)
            {
                var defaultLocale = LocaleController.Instance.GetDefaultLocale(PortalId);

                TabController.ConvertTabToNeutralLanguage(PortalId, tab.TabID, defaultLocale.Code, true);

                BindCLControl();
            }
            else
            {
                UI.Skins.Skin.AddModuleMessage(this, Localization.GetString("ChildrenExistWhenConvertingToNeutral", LocalResourceFile), ModuleMessage.ModuleMessageType.YellowWarning);
            }
        }