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(); }
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; } } }
public void PerformVaultCleanup() { _vaultManager.CleanupVault(); }