Example #1
0
        static void Main(string[] args)
        {
            PluginStore.InitializePluginStore();
            var bot = new Bot();

            bot.Start();
        }
Example #2
0
        public MainWindow()
        {
            InitializeComponent();

            _itemsSource = new ConcurrentObservableCollection<string>();
            var observer = new ConsoleWindowLogObserver(_itemsSource);
            Logging.Log.Observer = observer;

            BindingOperations.EnableCollectionSynchronization(_itemsSource, ConsoleWindowLogObserver.Lock);
            lstConsoleWindow.ItemsSource = _itemsSource;
            _itemsSource.CollectionChanged += (sender, args) =>
            {
                try
                {
                    var lastItem = lstConsoleWindow.Items[lstConsoleWindow.Items.Count - 1];
                    lstConsoleWindow.ScrollIntoView(lastItem);
                }
                catch (Exception e)
                {
                }
            };

            _bot = new Bot();
        }
        public ParsersWindow(Bot bot)
        {
            InitializeComponent();

            lstParsers.ItemsSource = bot.GetChatParserContainers();
        }