protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); if (ShortcutManager.Check(e.Args)) { this.Shutdown(0); } this.MainWindow = new MainWindow(); this.MainWindow.Show(); }