using System; using System.Threading.Tasks; using System.Windows; using WandEnhancer.Core; using WandEnhancer.Core.Services; using WandEnhancer.View.MainWindow; using MessageBox = System.Windows.Forms.MessageBox; namespace WandEnhancer { /// /// Interaction logic for App.xaml /// public partial class App { protected override void OnStartup(StartupEventArgs e) { LocalizationManager.Initialize(); this.MainWindow.Show(); } public new static void Shutdown() { Current.Dispatcher.Invoke(() => Current.Shutdown()); } } }