protected override async void OnStartup(StartupEventArgs e) { var assembly = typeof(App).Assembly; var windowConfig = WindowConfiguration.CreateWithDefaultIcon(assembly, "Test UI"); var appConfig = new WpfAppConfiguration(assembly, windowConfig); await AppStartService.StartAppAsync(appConfig); }
#pragma warning disable VSTHRD100 // Avoid async void methods protected override async void OnStartup(StartupEventArgs e) #pragma warning restore VSTHRD100 // Avoid async void methods { var assembly = typeof(App).Assembly; var windowConfig = WindowConfiguration.CreateWithDefaultIcon(assembly, "Website Download System"); var appConfig = new WpfAppConfiguration(assembly, windowConfig); await AppStartService.StartAppAsync(appConfig); }
protected override async void OnStartup(StartupEventArgs e) { var assembly = typeof(App).Assembly; var appConfig = WpfAppConfig.CreateWithDefaultIcon(assembly, "Deepl Translator"); await AppStartService.StartAppAsync(appConfig, AfterAppInitialized); }