示例#1
0
    protected void radAllLanguages_CheckedChanged(object sender, EventArgs e)
    {
        if (CheckModifyPermissions())
        {
            // Set value indicating whether the user have allowed cultures
            if (ui != null)
            {
                // Remove user's allowed cultures
                UserCultureInfoProvider.RemoveUserFromAllCultures(userId);
                ui.UserHasAllowedCultures = radSelectedLanguages.Checked;
                UserInfo.Provider.Set(ui);
                ui.Generalized.Invalidate(false);

                plcCultures.Visible = false;

                ShowChangesSaved();
            }
        }
    }
示例#2
0
    protected void radAllLanguages_CheckedChanged(object sender, EventArgs e)
    {
        if (CheckModifyPermissions())
        {
            // Set value indicating whether the user have allowed cultures
            if (ui != null)
            {
                // Remove user's allowed cultures
                UserCultureInfoProvider.RemoveUserFromAllCultures(userId);

                ui.UserHasAllowedCultures = radSelectedLanguages.Checked;
                UserInfoProvider.SetUserInfo(ui);

                plcCultures.Visible = false;

                lblInfo.Visible = true;
                lblInfo.Text    = GetString("General.ChangesSaved");
            }
        }
    }