Exemplo n.º 1
0
        private void PerformVaultCleanup()
        {
            var vaultManager = new VaultManager(Properties.Settings.Default.VaultPath, LocalDiskVault.VAULT);

            //init vault if not already created
            vaultManager.InitVault(staging: true);

            vaultManager.CleanupVault();
        }
Exemplo n.º 2
0
        private void deleteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            // User has clicked delete in tree view context menu
            var node = treeView1.SelectedNode;

            if (node != null)
            {
                if (node.Tag is IdentifierInfo)
                {
                    var i = (IdentifierInfo)node.Tag;
                    VaultManager.CleanupVault(i.Id);
                    ReloadVault();
                    return;
                }
                else
                {
                    DeleteVaultItem(node.Tag);
                    ReloadVault();
                    return;
                }
            }
        }
Exemplo n.º 3
0
 public void PerformVaultCleanup()
 {
     _vaultManager.CleanupVault();
 }