public string GetConnection(string key)
        {
            XrmConnectionInfo found = FindConnection(key);

            if (found != null)
            {
                return(Encryption.Decrypt(found.Value));
            }
            else
            {
                return(null);
            }
        }
        public void RemoveConnection(string key)
        {
            XrmConnectionInfo info = FindConnection(key);

            if (info != null)
            {
                ConnectionList.Connections.Remove(info);
                SaveList();
            }
            else
            {
                throw new Exception($"No connection found with key: {key}");
            }
        }
        public void SetConnection(string key, string connectionString)
        {
            string encryptedValue = Encryption.Encrypt(connectionString);

            XrmConnectionInfo info = FindConnection(key);

            if (info != null)
            {
                info.Value = encryptedValue;
            }
            else
            {
                ConnectionList.Connections.Add(new XrmConnectionInfo
                {
                    Key   = key,
                    Value = encryptedValue
                });
            }

            SaveList();
        }