public CrashWindow(string message) { DataContext = new CrashWindowViewModel(); InitializeComponent(); ErrorTextBox.Text = message; }
public CrashWindow(Exception exception, string crashReportFile) { InitializeComponent(); DataContext = Model = new CrashWindowViewModel(exception, crashReportFile); }