void ReadLocalized()
{
if (!File.Exists(LocalizedFileName))
return;
ResXResourceReader reader = new ResXResourceReader(LocalizedFileName);
reader.UseResXDataNodes = true;
System.Collections.IDictionaryEnumerator enumerator = reader.GetEnumerator();
// Run through the file looking for only true text related
// properties and only those with values set. Others are saved in the nonStringNodes
// so they can be written back later.
foreach (System.Collections.DictionaryEntry dic in reader) {
// Only consider this entry if the value is something.
if (null != dic.Value) {
ResXDataNode dataNode = (ResXDataNode) dic.Value;
if (InterestingString(dataNode) && strings.ContainsKey(dataNode.Name))
strings[dataNode.Name].Localized = (string) (dataNode.GetValue(noAssemblies));
else
nonStringNodes.Add(dataNode);
}
}
}