protected void SetOptionListItemFromCmPossibility(LfOptionListItem item, ICmPossibility poss, bool setKey = false) { //const char ORC = '\xfffc'; item.Abbreviation = ConvertFdoToMongoTsStrings.TextFromTsString(poss.Abbreviation.BestAnalysisVernacularAlternative, _wsf); if (setKey) item.Key = FindAppropriateKey(ConvertFdoToMongoTsStrings.TextFromTsString(poss.Abbreviation.get_String(_wsForKeys), _wsf)); item.Value = ConvertFdoToMongoTsStrings.TextFromTsString(poss.Name.BestAnalysisVernacularAlternative, _wsf); item.Guid = poss.Guid; }
protected LfOptionListItem CmPossibilityToOptionListItem(ICmPossibility pos) { var item = new LfOptionListItem(); SetOptionListItemFromCmPossibility(item, pos, true); return item; }