public static void HandleBotAddedMessage(object dummy, BotAddedMessage message)
        {
            var model = new BotViewModel(message.Bot);
            var layout = UIManager.Instance.AddDocument(model, () => new BotControl());
            if (layout == null) return;
            layout.Title = "Bot #" + message.Bot.Id;

            layout = model.AddDocument(new GeneralTabViewModel(message.Bot), () => new GeneralTab());
            layout.Title = "General";
        }
 public static void OnBotAdded(object sender, BotAddedMessage message)
 {
     if (AllowLogging)
         message.Bot.Dispatcher.MessageDispatched += OnMessageDispatched;
 }
 public static void OnBotAdded(object sender, BotAddedMessage message)
 {
     message.Bot.AddHandler(new HandlerClass());
 }
 public static void OnBotAdded(object sender, BotAddedMessage message)
 {
     message.Bot.AddHandler(new WelcomeMessage());
 }
 public static void OnBotAdded(Bot bot, BotAddedMessage message)
 {
     bot.RegisterHandler(new HandlerClass());
 }
 public static void Initialize(Bot bot, BotAddedMessage message)
 {
     if (AllowLogging)
         bot.Dispatcher.MessageDispatched += OnMessageDispatched;
 }