public MainWindow()
        {
            _viewModel = new MainViewModel(new MainModel());

            InitializeComponent();

            DataContext = _viewModel;

            RichTextBoxLog.Document.Blocks.Clear();
            _viewModel.LogUpdated += DataContext_LogUpdated;
        }
Example #2
0
 internal void SetViewModel(MainViewModel viewModel) {
     _viewModel = viewModel;
 }