コード例 #1
0
 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);
 }
コード例 #2
0
#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);
        }
コード例 #3
0
ファイル: App.xaml.cs プロジェクト: DrMueller/DeeplTranslator
 protected override async void OnStartup(StartupEventArgs e)
 {
     var assembly  = typeof(App).Assembly;
     var appConfig = WpfAppConfig.CreateWithDefaultIcon(assembly, "Deepl Translator");
     await AppStartService.StartAppAsync(appConfig, AfterAppInitialized);
 }