/// <summary>
        /// Handles <b>Edit</b> button clicks.
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="args">The arguments.</param>
        private void editButton_Click(object sender, EventArgs args)
        {
            if (SelectedConnection == null)
            {
                return;
            }

            var connectionDialog = new ConnectionDialog(SelectedConnection, edit: true, connections);

            if (connectionDialog.ShowDialog(dialogParent) == DialogResult.OK)
            {
                SaveConnections();
                ReloadConnections();
            }
        }
        /// <summary>
        /// Handles <b>Add</b> button clicks.
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="args">The arguments.</param>
        private void addButton_Click(object sender, EventArgs args)
        {
            var newConnection =
                new ConnectionInfo()
            {
                ConnectionsPanel = this
            };

            var connectionDialog = new ConnectionDialog(newConnection, edit: false, connections);

            if (connectionDialog.ShowDialog(dialogParent) == DialogResult.OK)
            {
                connections.Add(newConnection);
                SaveConnections();
                ReloadConnections();
            }
        }