/// <summary> /// Gets a Custom KeyChain given its name. /// </summary> /// <param name="name">The name of the Custom KeyChain</param> /// <returns>The CustomKeychain object if found, a default one if not</returns> public CustomKeychain GetCustomKeychain(string name) { try { return(CustomKeychains.First(w => w.Name == name)); } catch { return(new CustomKeychain()); } }
/// <summary> /// Gets the names of all Custom KeyChains. /// </summary> /// <returns>The list of all the names of custom KeyChain types</returns> public List <string> GetCustomKeychainNames() { return(CustomKeychains.Select(c => c.Name).ToList()); }