Translation Memory Fields Update: Set Field Values

Hi,

in the API.Documentation i've found this two examples of updating the Translation Memory Fields

1. Example

FieldValues fieldValuesCollection = new FieldValues();
FileBasedTranslationMemory tm = new FileBasedTranslationMemory(@"c:\ProjectFiles\Tms\General En-De.sdltm");
FieldDefinition field = tm.FieldDefinitions["Type"];
FieldValue fv = field.CreateValue();
fv.Name = "Technical documentation";
fieldValuesCollection.Add(fv);
tmSettings.ProjectSettings.Value = fieldValuesCollection;

2. Example
private void GetTmSetup()
{
    FileBasedTranslationMemory tm = new FileBasedTranslationMemory(@"c:\ProjectFiles\Tms\General En-De.sdltm");

    FieldDefinition def = new FieldDefinition();
    foreach (FieldDefinition tmField in tm.FieldDefinitions)
    {
        string tmSetup = string.Empty;
        tmSetup += tmField.Name;
        if (tmField.ValueType == FieldValueType.MultiplePicklist ||
            tmField.ValueType == FieldValueType.SinglePicklist)
        {
            for (int i = 0; i < tmField.PicklistItems.Count; i++)
            {
                tmSetup += tmField.PicklistItemsIdea.Name;
            }
        }
    }
}

So both example just show how to retrieve the values which is nice, but I need to set the values of the fields.
I couldn't find a setter-method for the FieldDefinition.
Does anyone have an idea?


Greets
Andrew