public virtual bool IsActive() { return(this.activeTranslatorConfiguration.ActiveTranslators .Any(x => x.Name == TranslatorType.ToString() && x.IsActive && x.IsEnabled)); }
public void AddTranslator(TranslatorType type) { Translators.Add(new Translator(type.ToString())); Activate(type); }
public void Activate(TranslatorType type) { Translators.FirstOrDefault(t => t.Name == type.ToString())?.Activate(); }
public void AddTranslator(TranslatorType translatorType) { Translators.Add(new Translator(translatorType.ToString(), translatorType)); }