public App() { if (SystemInspector.Debugger.IsAttached) { DialogService.ShowMessage("Debugger attached", "To test this application launch without debugging."); Shutdown(); return; } var mainViewModel = new MainViewModel(); Logger.Register(new ViewLogger(mainViewModel)); this.InstallExceptionHandler(); DialogService.ShowMain(mainViewModel); }
public ViewLogger(MainViewModel mainViewModel) { this.mainViewModel = mainViewModel; }