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