SobekCM.Core.ApplicationState.Portal.Add_Possible_Web_Skin C# (CSharp) Method

Add_Possible_Web_Skin() public method

Adds a web skin code to the list of possible web skins that can be displayed through this portal
public Add_Possible_Web_Skin ( string Web_Skin_Code ) : void
Web_Skin_Code string New web skin code to add
return void
        public void Add_Possible_Web_Skin(string Web_Skin_Code )
        {
            // Make sure this collection has been defined
            if (PossibleSkins == null)
            {
                PossibleSkins = new List<string> {Default_Web_Skin.ToLower()};
            }

            if (!PossibleSkins.Contains(Web_Skin_Code.ToLower()))
                PossibleSkins.Add(Web_Skin_Code.ToLower());
        }