public static void UpdatedTranslatedValue(string Key, string Value) { if (Key == string.Empty) { return; } if (ActiveTranslations.Where(x => x.Key == Key).Count() == 0) { CreateTranslatedValue(Key, Value); } else { } }
public static void CreateTranslatedValue(string Key, string Value) { if (Key == string.Empty) { return; } if (ActiveTranslations.Where(x => x.Key == Key).Count() == 0) { var list = ActiveTranslations.ToList(); list.Add(new XML.Translation(Key, Value)); ActiveTranslations = list.ToArray(); } else { UpdatedTranslatedValue(Key, Value); } }