コード例 #1
0
ファイル: FilterEvaluator.cs プロジェクト: jonaslsl/modSIC
 private List<sc.ObjectType> ApplyFilterInObjectType(string filterValue, sc.ObjectType objectType)
 {
     List<sc.ObjectType> objectTypesAfterFilter = new List<sc.ObjectType>();
     IEnumerable<string> referenceIds = objectType.GetReferenceTypesInString();
     foreach (string id in referenceIds)
     {
         ItemType itemType = this.systemCharacteristics.GetSystemDataByReferenceId(id);
         StateType state = this.GetStateById(filterValue);
         StateTypeComparator comparator = new StateTypeComparator(state, itemType,this.variables);
         if (!comparator.IsEquals())
         {
             this.AddObjectTypeInList(objectType, objectTypesAfterFilter);
         }
     }
     return objectTypesAfterFilter;
 }