private void ActionLoad() { // Read data foreach (LanguageFile file in filesForProceed) { ResourcesDictionary[(int)file.language] = ResourceDictionaryFunctions.LoadResourceDictionaryFromFile(file.file); } bool result; // Verify data (quick way 1) result = ResourceDictionaryFunctions.VerifySizeOfResourcesDictionary(ResourcesDictionary); if (!result) { MessageBox.Show("Size of resources doesnot match!"); return; } // Verify data (way 2) result = ResourceDictionaryFunctions.VerifyKeysInResourcesDictionary(ResourcesDictionary); if (!result) { MessageBox.Show("Keys in resources does not match!"); return; } // Build list of Keys and values EditorDataModel.Items.Clear(); foreach (DictionaryEntry key in ResourcesDictionary[(int)LanguageTypes.Languages.lLV]) { ItemModel myData = new ItemModel { KeyName = key.Key.ToString(), Value1 = key.Value.ToString(), Value2 = ResourcesDictionary[(int)LanguageTypes.Languages.lRU][key.Key].ToString(), Value3 = ResourcesDictionary[(int)LanguageTypes.Languages.lEN][key.Key].ToString(), Value4 = ResourcesDictionary[(int)LanguageTypes.Languages.lDE][key.Key].ToString() }; EditorDataModel.Items.Add(myData); } //ResourceDictionaryKeys = ResourceDictionaryFunctions.GetListOfAllKeysAsObservableCollection(ResourcesDictionary[(int)LanguageTypes.Languages.lLV]); }