コード例 #1
0
        /// <summary> Adds a web skin code to the list of possible web skins that can be displayed
        /// through this portal </summary>
        /// <param name="Web_Skin_Code"> New web skin code to add </param>
        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());
            }
        }
コード例 #2
0
 /// <summary> Flag indicates if the provided web skin code is permitted within this portal </summary>
 /// <param name="Web_Skin_Code"> Web skin code to check </param>
 /// <returns> TRUE if permitted (or if this portal is not web skin limiting), otherwise FALSE </returns>
 public bool Is_Possible_Web_Skin(string Web_Skin_Code)
 {
     // If this collection is not defined, then it is not limiting
     return(PossibleSkins == null || PossibleSkins.Contains(Web_Skin_Code.ToLower()));
 }