public void Dispose() { if (VAULT != null) { VAULT.LogOutSilent(); } if (MFilesServer != null) { MFilesServer.Disconnect(); } }
private static string GetVaultNames() { StringBuilder sb = new StringBuilder(); Vaults = MFilesServer.GetOnlineVaults(); for (int i = 1; i < Vaults.Count + 1; i++) { sb.AppendLine($"{i}. {Vaults[i].Name}"); } return(sb?.Remove(sb.Length - 2, 1).ToString()); }