protected override void OnStartup(StartupEventArgs e) { Console.WriteLine("Starting AppDomain Launcher"); AppDomainLauncher domainLauncher = new AppDomainLauncher(); var mainWindow = new MainWindow(domainLauncher); mainWindow.Show(); }
public MainWindow(AppDomainLauncher launcher) { this.launcher = launcher; logger.Info("On WPF startup"); InitializeComponent(); CodeToTestSimpleFactory factory = new CodeToTestSimpleFactory(); //explicitly split into to separete things for introducing another changes CodeToTestList codeToTestList = new CodeToTestList(factory.ListOfCodeTests); containerListBox.DataContext = codeToTestList; }