Ejemplo n.º 1
0
        /// <summary>
        /// Refresh the Target Vaults list.
        /// </summary>
        private void RefreshVaults()
        {
            // Get the available vaults.
            // We'll do this in its own AppDomain so we can unload the API by
            // unloading the AppDomain.
            var vaults = clientApp.GetVaultConnections();

            var selectedText = vaultInput.Text;

            vaultInput.Items.Clear();
            foreach (MFilesAPI.VaultConnection v in vaults)
            {
                vaultInput.Items.Add(v.Name);
            }
            vaultInput.Text = selectedText;
        }
Ejemplo n.º 2
0
 private void SelectVaultDialog_Load( object sender, EventArgs e )
 {
     var app = new MFilesAPI.MFilesClientApplication();
     var vaults = app.GetVaultConnections();
     foreach( MFilesAPI.VaultConnection vault in vaults )
     {
         vaultList.Items.Add( vault.Name );
     }
     vaultList.SelectedIndex = 0;
 }
        private void SelectVaultDialog_Load(object sender, EventArgs e)
        {
            var app    = new MFilesAPI.MFilesClientApplication();
            var vaults = app.GetVaultConnections();

            foreach (MFilesAPI.VaultConnection vault in vaults)
            {
                vaultList.Items.Add(vault.Name);
            }
            vaultList.SelectedIndex = 0;
        }