public static async Task StartNewConnection() { var initialSecretStore = await TryOpenNewConnection(Configuration["keyVaultUri"]); var view = new VaultBrowserViewForm(initialSecretStore.Name, initialSecretStore); context.AddForm(view); view.Show(); }
static async Task Main() { Application.SetHighDpiMode(HighDpiMode.SystemAware); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var initialSecretStore = await TryOpenNewConnection(Configuration["keyVaultUri"]); var view = new VaultBrowserViewForm(initialSecretStore.Name, initialSecretStore); context.AddForm(view); view.Show(); if (context.HasAnyWindows) { Application.Run(context); } }