Exemple #1
0
        public static async Task StartNewConnection()
        {
            var initialSecretStore = await TryOpenNewConnection(Configuration["keyVaultUri"]);

            var view = new VaultBrowserViewForm(initialSecretStore.Name, initialSecretStore);

            context.AddForm(view);
            view.Show();
        }
Exemple #2
0
        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);
            }
        }