public WonkaRefSourceField GetSourceField(WonkaRefSource poSource, WonkaRefField poField)
 {
     if ((poSource != null) && (poField != null))
     {
         Dictionary <int, int> FieldsToSourceFields = IdXref.SourceFields[poSource.SourceId];
         return(SourceFieldCache[FieldsToSourceFields[poField.FieldId]]);
     }
     else
     {
         return(null);
     }
 }
        public List <WonkaRefField> GetFieldsByGroupId(int pnGroupId)
        {
            HashSet <int>        oFieldIds = IdXref.GroupIdToFieldIds[pnGroupId];
            List <WonkaRefField> oFields   = new List <WonkaRefField>();

            // var oFields = DownloadedItems.Where(x => !CurrentCollection.Any(y => x.bar == y.bar));

            foreach (int nFieldId in oFieldIds)
            {
                WonkaRefField oTmpField = FieldMap[nFieldId];
                oFields.Add(oTmpField);
            }

            return(oFields);
        }
 public bool IsSourceField(WonkaRefSource poSource, WonkaRefField poField)
 {
     return(GetSourceField(poSource, poField) != null);
 }