/// <summary> Adds a web skin code to the list of possible web skins that can be displayed /// through this portal </summary> /// <param name="Aggregation_Code"> New web skin code to add </param> public void Add_Possible_Aggregation(string Aggregation_Code) { // Make sure this collection has been defined if (PossibleAggregations == null) { PossibleAggregations = new List <string> { Default_Aggregation.ToLower() }; } if (!PossibleAggregations.Contains(Aggregation_Code.ToLower())) { PossibleAggregations.Add(Aggregation_Code.ToLower()); } }
/// <summary> Flag indicates if the provided aggregation code is permitted within this portal </summary> /// <param name="Aggregation_Code"> Aggregation code to check </param> /// <returns> TRUE if permitted (or if this portal is not aggregation limiting), otherwise FALSE </returns> public bool Is_Possible_Aggregation(string Aggregation_Code) { // If this collection is not defined, then it is not limiting return(PossibleAggregations == null || PossibleAggregations.Contains(Aggregation_Code.ToLower())); }