public MainWindow()
        {
            InitializeComponent();

            vm = new RunnerViewModel(new WpfContext());

            DataContext = vm;

            Closing += View_Closing;
        }
Exemplo n.º 2
0
        public MainWindow()
        {
            InitializeComponent();

            vm = new RunnerViewModel(new WpfContext());

            DataContext = vm;

            Closing += View_Closing;
        }
        public MainWindow()
        {
            InitializeComponent();

            vm = new RunnerViewModel(new WpfContext());

            DataContext = vm;

            Closing += View_Closing;

            var outputter = new TextBoxOutputter(ConsoleTextBlock);

            Console.SetOut(outputter);

            var args = Environment.GetCommandLineArgs();

            if (args.Length == 2)
            {
                vm.TestAssembly = args[1];
            }
        }