protected override void OnStartup(StartupEventArgs e) { this.DispatcherUnhandledException += UnhandledException; CommandLineParameters = new CommandLineParameters(e.Args); }