public virtual bool IsActive()
 {
     return(this.activeTranslatorConfiguration.ActiveTranslators
            .Any(x => x.Name == TranslatorType.ToString() &&
                 x.IsActive &&
                 x.IsEnabled));
 }
Exemplo n.º 2
0
 public void AddTranslator(TranslatorType type)
 {
     Translators.Add(new Translator(type.ToString()));
     Activate(type);
 }
Exemplo n.º 3
0
 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));
 }