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

            InitializeComponent();

            DataContext = _viewModel;

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