protected override void Execute(CodeActivityContext context) { // ToDo.. SoundExTranslate translation = new SoundExTranslate(); translation.UseGerman = UseGernan.Get(context); var result = translation.Generate(Phrase.Get(context)); Code.Set(context, result); }
private Phrase GetSegmentName(ExplorerEntityKind kind) { switch (kind) { case ExplorerEntityKind.Bot: return(Phrase.Get("Bots")); case ExplorerEntityKind.Channel: return(Phrase.Get("Channels")); case ExplorerEntityKind.Group: return(Phrase.Get("Groups")); case ExplorerEntityKind.People: return(Phrase.Get("People")); } return(null); }