Пример #1
0
        private void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            Log.LogMessageAdded += (o, args) =>
            {
                TxLog.Dispatcher.Invoke(() =>
                {
                    TxLog.Text = Log.LogText;
                    TxLog.ScrollToEnd();
                });
            };

            // Assign our default memory accessor (it may be overridden in the next line)
            _memoryProxyType = typeof(BasicMemory);

            LoadSettings();
        }
Пример #2
0
        private void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            Log.LogMessageAdded += (o, args) =>
            {
                TxLog.Dispatcher.Invoke(() =>
                {
                    TxLog.Text = Log.LogText;
                    TxLog.ScrollToEnd();
                });
            };

            //TvMainView.SelectedItemChanged += (o, args) => { /* Todo: maybe set up the context to be used by other functions for the selected item here */ };

            // Assign our default memory accessor (it may be overridden in the next line)
            _memoryProxyType = typeof(BasicMemory);

            CbDropType.DataContext = this;
            CbDropType.ItemsSource = DropTypes;

            LoadSettings();
        }