Exemplo n.º 1
0
        public void ReloadVault()
        {
            this.VaultManager = ((MainForm)this.Parent.FindForm()).VaultManager;
            VaultManager.ReloadVaultConfig();
            var vaultInfo = VaultManager.GetVaultConfig();

            if (vaultInfo != null)
            {
                this.lblVaultLocation.Text = VaultManager.VaultFolderPath;
                this.lblAPIBaseURI.Text    = vaultInfo.BaseUri;

                populateTreeView(vaultInfo);

                this.UpdateLogView(VaultManager.GetActionLogSummary());

                //store setting for current vault path
                if (Properties.Settings.Default.VaultPath != VaultManager.VaultFolderPath)
                {
                    Properties.Settings.Default.VaultPath = VaultManager.VaultFolderPath;
                    Properties.Settings.Default.Save();
                }
            }
        }
Exemplo n.º 2
0
 public List <string> GetActionSummary()
 {
     return(_vaultManager.GetActionLogSummary());
 }