protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); var solverVM = new SolverViewModel(); var mainWin = new MainWindow(solverVM); mainWin.Show(); }
public MainWindow(SolverViewModel vm) { InitializeComponent(); this.DataContext = vm; }