public MainWindow() { InitializeComponent(); eventHistory = new List <string>(); settings = new Settings(); btnDisableCrashReports.DataContext = settings; btnEnableDeveloperMode.DataContext = settings; CrashReporting.CrashReporter.StartWatching(); CrashReporting.CrashReporter.OnCrashDumpProcessed += CrashReporter_OnDumpProcessed; SDKInjector.OnLaunchingProcess += SDKInjector_OnLaunchingProcess; SDKInjector.OnInjectingIntoProcess += SDKInjector_OnInjectingIntoProcess; SDKInjector.OnInjectionComplete += SDKInjector_OnInjectionComplete; SDKInjector.OnInjectionException += SDKInjector_OnInjectionException; ModDatabase.OnStartedLoadingMods += ModDatabase_OnStartedLoadingMods; ModDatabase.OnFinishedLoadingMods += ModDatabase_OnFinishedLoadingMods; ModDatabase.OnModLoaded += ModDatabase_OnModLoaded; ModDatabase.OnFinishedImportingMod += ModDatabase_OnFinishedImportingMod; ModDatabase.OnModsChanged += ModDatabase_OnModsChanged; ModDatabase.LoadAll(); ModDatabase.WatchModsFolder(); UpdateLauncherSelection(); }