// check fields against criteria to determine if it // matches / passes public bool Match(RevDataKey key, RevDataItems items) { bool result = false; for (int i = 0; i < TEST_COUNT; i++) { result = false; switch (i) { case 0: // visibility { result = Visible == VISIBILITY_ALL || items.RevVisible == _visCrossRef[(int)Visible]; break; } case 1: // revid { result = CompareRevId(items.RevId); break; } case 2: // revaltid { result = CompareRevAltId(key.RevAltId); break; } case 3: // blocktitle { result = CompareBlockTitle(items.RevBlockTitle); break; } case 4: // deltatitle { result = CompareDeltaTitle(key.RevDeltaTitle); break; } case 5: // basis { result = CompareBasis(items.RevBasis); break; } } if (result == false) { break; } } return(result); }
private void AddToLists(RevDataKey Key, RevDataItems Value) { AddToList(LIST_SEQUENCE, Value.Sequence); AddToList(LIST_REVALTID, Key.RevAltId); AddToList(LIST_DELTATITLE, Key.RevDeltaTitle); AddToList(LIST_SHTNUM, Key.RevShtNumber); AddToList(LIST_BLOCKTITLE, Value.RevBlockTitle); AddToList(LIST_BASIS, Value.RevBasis); AddToList(LIST_DESC, Value.RevDescription); }