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

            bot.Start();
        }
Exemplo n.º 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();
        }
Exemplo n.º 3
0
        public ParsersWindow(Bot bot)
        {
            InitializeComponent();

            lstParsers.ItemsSource = bot.GetChatParserContainers();
        }