private bool IsTranslating <L, S>(ITranslatedLabel <L, S> label) where L : Component { bool returnFlag = false; if ((label != null) && (string.IsNullOrEmpty(label.TranslationKey) == false) && (label.Dictionary != null)) { returnFlag = label.Dictionary.AllTranslations.ContainsKey(label.TranslationKey); } return(returnFlag); }
private void UpdateField <L, S>(ITranslatedLabel <L, S> source) where L : Component { //source.UpdateField(); foreach (TranslationDictionary dictionary in dictionaries) { if (dictionary.AllTranslations.ContainsKey(source.TranslationKey) == true) { source.Dictionary = dictionary; break; } } }